From 04d6cf556c2410cea05eab06a351a9b36a4fbb6d Mon Sep 17 00:00:00 2001 From: Tomas Chmelevskij Date: Fri, 19 Aug 2022 21:48:49 +0100 Subject: [PATCH] Tidy up `init.js` build order --- gulpfile.js | 2 -- src/js/main.js | 3 ++- src/main.html | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index a03fe090..b63d5ff4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -407,10 +407,8 @@ function dist_rollup() { // If all the things used by other files are importing // it with `import/export` file doesn't have to be here. // I will be picked up by rollup and bundled accordingly. - 'components/init': 'src/components/init.js', 'js/main_cordova': 'src/js/main_cordova.js', 'js/utils/common': 'src/js/utils/common.js', - 'js/tabs/logging': 'src/js/tabs/logging.js', 'js/main': 'src/js/main.js', }, plugins: [ diff --git a/src/js/main.js b/src/js/main.js index a53432ca..1456988f 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -1,4 +1,5 @@ -import { i18n } from './localization'; +import '../components/init.js'; +import { i18n } from './localization.js'; $(document).ready(function () { diff --git a/src/main.html b/src/main.html index 7f12007c..1d19e1fc 100644 --- a/src/main.html +++ b/src/main.html @@ -52,7 +52,6 @@ -