mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 17:00:24 +01:00
minify client scripts only after plugin system is activated
This commit is contained in:
@@ -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) {
|
plugins.ready(function() {
|
||||||
clientScripts = scripts.map(function (script) {
|
// Minify client-side libraries
|
||||||
script = {
|
meta.js.get(function (err, scripts) {
|
||||||
script: script
|
clientScripts = scripts.map(function (script) {
|
||||||
};
|
script = {
|
||||||
|
script: script
|
||||||
|
};
|
||||||
|
|
||||||
return script;
|
return script;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
server.app = app;
|
server.app = app;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user