From e2f0953b9badc87661dc7db68f3ef498a1f4fd6d Mon Sep 17 00:00:00 2001 From: kendo5731 Date: Thu, 4 Feb 2016 22:33:40 +0100 Subject: [PATCH] chore(): add npm run watch for sass files --- gulpfile.js | 4 ++++ package.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index ce1c007..88bae83 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -13,6 +13,10 @@ gulp.task('sass', function() { .pipe(gulp.dest('./static/css')); }); +gulp.task('watch', function() { + gulp.watch('./static/**/*.scss', ['sass']); +}); + gulp.task('default', function() { gulp.start('fonts', 'sass'); }); diff --git a/package.json b/package.json index 0badc9b..28c5066 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "gulp-util": "^3.0.7" }, "scripts": { - "build": "gulp" + "build": "gulp", + "watch": "gulp watch" } }