mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
added new --from-file flag that will load js/css from the precompiled file instead of recompiling it on startup
This commit is contained in:
@@ -46,12 +46,11 @@ if(nconf.get('ssl')) {
|
||||
|
||||
// Preparation dependent on plugins
|
||||
plugins.ready(function() {
|
||||
meta.js.minify(app.enabled('minification'));
|
||||
meta.css.minify();
|
||||
|
||||
if (cluster.isWorker && process.env.cluster_setup === 'true') {
|
||||
meta.sounds.init();
|
||||
}
|
||||
async.parallel([
|
||||
async.apply(!nconf.get('from-file') ? meta.js.minify : meta.js.getFromFile, app.enabled('minification')),
|
||||
async.apply(!nconf.get('from-file') ? meta.css.minify : meta.css.getFromFile),
|
||||
async.apply(meta.sounds.init)
|
||||
]);
|
||||
});
|
||||
|
||||
async.parallel({
|
||||
|
||||
Reference in New Issue
Block a user