Skip to content

Node.js based forum software built for the modern web

meta.js merge conflict

psychobunnyd20501b29d3f
diff --cc src/meta.js
index 91ef0d6474,ce1cd70990..ad788fdece
--- a/src/meta.js
+++ b/src/meta.js
@@@ -274,17 -275,15 +278,17 @@@ var fs = require('fs')
}
});
+ // Remove scripts that could not be found (remove this line at v0.5.0)
- Meta.js.scripts = jsPaths.filter(function(path) { return path !== null });
+ Meta.js.scripts = jsPaths.filter(function(path) {
+ return path !== null;
+ });
- if (process.env.NODE_ENV !== 'development') {
- callback(null, [
- Meta.js.minFile
- ]);
- } else {
- callback(null, scripts);
- }
+ // Add plugin scripts
+ Meta.js.scripts = Meta.js.scripts.concat(plugins.clientScripts);
+
+ callback(null, [
+ Meta.js.minFile
+ ]);
});
},
minify: function (callback) {