aboutsummaryrefslogtreecommitdiff
path: root/viewer/src
diff options
context:
space:
mode:
authorZero~Informatique2020-02-07 07:55:09 +0100
committerZero~Informatique2020-02-07 07:57:19 +0100
commit41741f1882c019edac15b1a05f51b72e5af069f7 (patch)
tree6fa3d34500aa85e877b7d820792ce627fb494429 /viewer/src
parentbb186990000dd133ecfe6741472b03af92eea233 (diff)
downloadldgallery-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.ts18
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
20import Vue from "vue"; 20import Vue from "vue";
21import "@/assets/scss/global.scss"; 21import "@/assets/scss/global.scss";
22import "@/components"
23import "@/plugins/fontawesome";
24import "@/plugins/buefy";
25import "@/plugins/lazyimage";
26import "@/plugins/dragscroll";
27import store from '@/store' 22import store from '@/store'
28import i18n from "@/plugins/i18n"; 23import i18n from "@/plugins/i18n";
29import router from "@/plugins/router"; 24import router from "@/plugins/router";
30import MainLayout from "@/views/MainLayout.vue";
31
32Vue.config.productionTip = false; 25Vue.config.productionTip = false;
33 26
27import(/* webpackChunkName: "ui" */ "@/plugins/buefy");
28import(/* webpackChunkName: "ui" */ "@/components");
29import(/* webpackChunkName: "ui" */ "@/plugins/lazyimage");
30import(/* webpackChunkName: "ui" */ "@/plugins/dragscroll");
31import(/* webpackChunkName: "ui" */ "@/plugins/fontawesome");
32const MainLayout = () => import(/* webpackChunkName: "ui" */ "@/views/MainLayout.vue");
33
34new Vue({ 34new 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