set up plugins in build step as well

This commit is contained in:
Julian Lam
2016-11-17 11:51:38 -05:00
parent b1f23c8c4b
commit 232b387652
2 changed files with 8 additions and 4 deletions

View File

@@ -48,9 +48,11 @@ var middleware;
return callback();
}
app = nbbApp;
middleware = nbbMiddleware;
hotswap.prepare(nbbApp);
if (nbbApp) {
app = nbbApp;
middleware = nbbMiddleware;
hotswap.prepare(nbbApp);
}
if (global.env === 'development') {
winston.verbose('[plugins] Initializing plugins system');