chore(): add npm run watch for sass files

This commit is contained in:
kendo5731 2016-02-04 22:33:40 +01:00
parent eafcee54eb
commit e2f0953b9b
2 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,10 @@ gulp.task('sass', function() {
.pipe(gulp.dest('./static/css')); .pipe(gulp.dest('./static/css'));
}); });
gulp.task('watch', function() {
gulp.watch('./static/**/*.scss', ['sass']);
});
gulp.task('default', function() { gulp.task('default', function() {
gulp.start('fonts', 'sass'); gulp.start('fonts', 'sass');
}); });

View File

@ -11,6 +11,7 @@
"gulp-util": "^3.0.7" "gulp-util": "^3.0.7"
}, },
"scripts": { "scripts": {
"build": "gulp" "build": "gulp",
"watch": "gulp watch"
} }
} }