mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
grunt: only compile ACP less if that was changed, and vice versa with theme/plugin less
This commit is contained in:
@@ -78,11 +78,6 @@ function initializeNodeBB(callback) {
|
||||
skipJS = true;
|
||||
}
|
||||
|
||||
if (fromFile.match('less')) {
|
||||
winston.info('[minifier] Compiling LESS files skipped');
|
||||
skipLess = true;
|
||||
}
|
||||
|
||||
async.waterfall([
|
||||
async.apply(cacheStaticFiles),
|
||||
async.apply(meta.themes.setupPaths),
|
||||
@@ -94,7 +89,7 @@ function initializeNodeBB(callback) {
|
||||
async.apply(meta.templates.compile),
|
||||
async.apply(!skipJS ? meta.js.minify : meta.js.getFromFile, 'nodebb.min.js'),
|
||||
async.apply(!skipJS ? meta.js.minify : meta.js.getFromFile, 'acp.min.js'),
|
||||
async.apply(!skipLess ? meta.css.minify : meta.css.getFromFile),
|
||||
async.apply(meta.css.minify),
|
||||
async.apply(meta.sounds.init),
|
||||
async.apply(meta.blacklist.load)
|
||||
], next);
|
||||
|
||||
Reference in New Issue
Block a user