Remove CSS from bundler. Add watch task.
This commit is contained in:
parent
b2e741bffa
commit
91f6c79f3c
3 changed files with 6 additions and 8 deletions
|
@ -3,8 +3,12 @@ var gulp = require("gulp"),
|
|||
cleanCss = require("gulp-clean-css");
|
||||
|
||||
gulp.task("default", function () {
|
||||
return gulp.src('wwwroot/css/*.less')
|
||||
return gulp.src('wwwroot/css/**/*.less')
|
||||
.pipe(less())
|
||||
.pipe(cleanCss())
|
||||
.pipe(gulp.dest('wwwroot/css'));
|
||||
});
|
||||
|
||||
gulp.task("watch", function () {
|
||||
gulp.watch("wwwroot/css/**/*.less", gulp.series("default"));
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue