minify client scripts only after plugin system is activated

This commit is contained in:
psychobunny
2013-11-25 12:35:54 -05:00
parent b90eef6d19
commit c261babf17

View File

@@ -35,17 +35,21 @@ var path = require('path'),
var templates = null,
clientScripts;
// Minify client-side libraries
meta.js.get(function (err, scripts) {
clientScripts = scripts.map(function (script) {
script = {
script: script
};
plugins.ready(function() {
// Minify client-side libraries
meta.js.get(function (err, scripts) {
clientScripts = scripts.map(function (script) {
script = {
script: script
};
return script;
return script;
});
});
});
server.app = app;
/**