feat: improve grunt restart/rebuild speed

This commit is contained in:
Barış Soner Uşaklı
2020-05-19 21:15:51 -04:00
parent 2a00b0e973
commit cb662e15ce
8 changed files with 169 additions and 198 deletions

View File

@@ -201,7 +201,7 @@ CSS.buildBundle = function (target, fork, callback) {
getBundleMetadata(target, next);
},
function (data, next) {
var minify = global.env !== 'development';
var minify = process.env.NODE_ENV !== 'development';
minifier.css.bundle(data.imports, data.paths, minify, fork, next);
},
function (bundle, next) {