Updated js code so vendors can be added to the modules folder, so

they can be required properly and we can finally get rid of that
really annoying "mismatched anonymous" error in Require.js.

First module to make the transition: Chart.js
This commit is contained in:
Julian Lam
2016-02-26 11:29:17 -05:00
parent 5997f2f5c4
commit e1323c0295
8 changed files with 54 additions and 7 deletions

View File

@@ -92,6 +92,7 @@ function initializeNodeBB(callback) {
function(next) {
async.parallel([
async.apply(meta.templates.compile),
async.apply(meta.js.symlinkModules),
async.apply(!skipJS ? meta.js.minify : meta.js.getFromFile, 'nodebb.min.js'),
async.apply(!skipJS ? meta.js.minify : meta.js.getFromFile, 'acp.min.js'),
async.apply(!skipLess ? meta.css.minify : meta.css.getFromFile),