From d7992a5e19b70291e5ee9fe0acc9eb6761dbd285 Mon Sep 17 00:00:00 2001
From: NGPixel <github@ngpixel.com>
Date: Sun, 11 Jun 2017 18:48:46 -0400
Subject: [PATCH] fix: fusebox bundle rebuild bug

---
 fuse.js                     | 4 +++-
 server/views/auth/login.pug | 2 +-
 server/views/layout.pug     | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

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