minify client scripts only after plugin system is activated

v1.18.x
psychobunny 12 years ago
parent b90eef6d19
commit c261babf17

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

Loading…
Cancel
Save