minify client scripts only after plugin system is activated

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

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

Loading…
Cancel
Save