diff --git a/fuse.js b/fuse.js index d77558dc..f1d11100 100644 --- a/fuse.js +++ b/fuse.js @@ -83,6 +83,7 @@ globalTasks.then(() => { homeDir: './client', output: './assets/js/$name.min.js', alias: ALIASES, + shim: SHIMS, plugins: [ fsbx.EnvPlugin({ NODE_ENV: (dev) ? 'development' : 'production' }), fsbx.VuePlugin(), @@ -105,7 +106,8 @@ globalTasks.then(() => { }) } - const bundleApp = fuse.bundle('app').shim(SHIMS).instructions('> index.js') + const bundleVendor = fuse.bundle('vendor').instructions('~ index.js') + const bundleApp = fuse.bundle('app').instructions('!> [index.js]') const bundleSetup = fuse.bundle('configure').instructions('> configure.js') switch (mode) { diff --git a/server/views/auth/login.pug b/server/views/auth/login.pug index b3eb3e1d..0b3b14bb 100644 --- a/server/views/auth/login.pug +++ b/server/views/auth/login.pug @@ -18,7 +18,7 @@ html(data-logic='login') link(rel='manifest', href='/manifest.json') // JS / CSS - //- script(type='text/javascript', src='/js/libs.min.js') + script(type='text/javascript', src='/js/vendor.min.js') script(type='text/javascript', src='/js/app.min.js') body diff --git a/server/views/layout.pug b/server/views/layout.pug index 32b6c993..61df5e6a 100644 --- a/server/views/layout.pug +++ b/server/views/layout.pug @@ -23,7 +23,7 @@ html var siteRoot = '!{appconfig.host}'; //- JS / CSS - //- script(type='text/javascript', src='/js/libs.min.js') + script(type='text/javascript', src='/js/vendor.min.js') script(type='text/javascript', src='/js/app.min.js') block head