diff options
author | Zero~Informatique | 2020-02-07 07:55:09 +0100 |
---|---|---|
committer | Zero~Informatique | 2020-02-07 07:57:19 +0100 |
commit | 41741f1882c019edac15b1a05f51b72e5af069f7 (patch) | |
tree | 6fa3d34500aa85e877b7d820792ce627fb494429 /viewer/src | |
parent | bb186990000dd133ecfe6741472b03af92eea233 (diff) | |
download | ldgallery-41741f1882c019edac15b1a05f51b72e5af069f7.tar.gz |
viewer: project optimization for faster init, and a better Visual Studio Code environnement
Diffstat (limited to 'viewer/src')
-rw-r--r-- | viewer/src/main.ts | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/viewer/src/main.ts b/viewer/src/main.ts index a8ff322..bc005c5 100644 --- a/viewer/src/main.ts +++ b/viewer/src/main.ts | |||
@@ -19,21 +19,23 @@ | |||
19 | 19 | ||
20 | import Vue from "vue"; | 20 | import Vue from "vue"; |
21 | import "@/assets/scss/global.scss"; | 21 | import "@/assets/scss/global.scss"; |
22 | import "@/components" | ||
23 | import "@/plugins/fontawesome"; | ||
24 | import "@/plugins/buefy"; | ||
25 | import "@/plugins/lazyimage"; | ||
26 | import "@/plugins/dragscroll"; | ||
27 | import store from '@/store' | 22 | import store from '@/store' |
28 | import i18n from "@/plugins/i18n"; | 23 | import i18n from "@/plugins/i18n"; |
29 | import router from "@/plugins/router"; | 24 | import router from "@/plugins/router"; |
30 | import MainLayout from "@/views/MainLayout.vue"; | ||
31 | |||
32 | Vue.config.productionTip = false; | 25 | Vue.config.productionTip = false; |
33 | 26 | ||
27 | import(/* webpackChunkName: "ui" */ "@/plugins/buefy"); | ||
28 | import(/* webpackChunkName: "ui" */ "@/components"); | ||
29 | import(/* webpackChunkName: "ui" */ "@/plugins/lazyimage"); | ||
30 | import(/* webpackChunkName: "ui" */ "@/plugins/dragscroll"); | ||
31 | import(/* webpackChunkName: "ui" */ "@/plugins/fontawesome"); | ||
32 | const MainLayout = () => import(/* webpackChunkName: "ui" */ "@/views/MainLayout.vue"); | ||
33 | |||
34 | new Vue({ | 34 | new Vue({ |
35 | router, | 35 | router, |
36 | i18n, | 36 | i18n, |
37 | store, | 37 | store, |
38 | render: h => h(MainLayout) | 38 | render: h => h(MainLayout) |
39 | }).$mount("#ldgallery"); | 39 | }).$mount("#ldgallery") |
40 | |||
41 | |||