From 91f6c79f3ce07bd31c534726b413fd1c6efc069f Mon Sep 17 00:00:00 2001 From: Robert Marshall Date: Sat, 20 Apr 2019 19:33:47 +0100 Subject: [PATCH] Remove CSS from bundler. Add watch task. --- Website/bundleconfig.json | 6 ------ Website/gulpfile.js | 6 +++++- Website/package.json | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Website/bundleconfig.json b/Website/bundleconfig.json index 83cc504..54fcadc 100644 --- a/Website/bundleconfig.json +++ b/Website/bundleconfig.json @@ -1,10 +1,4 @@ [ - { - "outputFileName": "wwwroot/css/site.min.css", - "inputFiles": [ - "wwwroot/css/site.css" - ] - }, { "outputFileName": "wwwroot/js/site.min.js", "inputFiles": [ diff --git a/Website/gulpfile.js b/Website/gulpfile.js index f802c45..ebc904f 100644 --- a/Website/gulpfile.js +++ b/Website/gulpfile.js @@ -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")); }); \ No newline at end of file diff --git a/Website/package.json b/Website/package.json index a4bbb5e..b57746d 100644 --- a/Website/package.json +++ b/Website/package.json @@ -10,7 +10,7 @@ }, "dependencies": {}, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "gulp": "gulp" }, "author": "Robert Marshall", "license": "ISC",