fixes gulp build for dev purposes - no fastdev since there's no need for it, removes inlining templates when not in prod

This commit is contained in:
Shannon
2019-08-14 12:28:28 +10:00
parent 3b60815e53
commit 9d77114d50
4 changed files with 26 additions and 39 deletions

View File

@@ -17,17 +17,12 @@ module.exports = function(files, out) {
];
var task = gulp.src(files)
.pipe(less());
if (global.isProd === true) {
task = task.pipe(cleanCss());
}
task = task.pipe(postcss(processors))
.pipe(less())
.pipe(cleanCss())
.pipe(postcss(processors))
.pipe(rename(out))
.pipe(gulp.dest(config.root + config.targets.css));
return task;
};
};