Do compilation before entering watching mode

This commit is contained in:
Pig Fang 2017-12-17 19:22:09 +08:00
parent 38b6307776
commit e33ac27d6c

View File

@ -212,7 +212,7 @@ gulp.task('zip', () => {
.pipe(notify({ message: `Zip archive saved to ${zipPath}!` }));
});
gulp.task('watch', () => {
gulp.task('watch', ['compile-sass', 'compile-es6'], () => {
// watch .scss files
gulp.watch(`${srcPath}/sass/*.scss`, ['compile-sass'], () => notify('Sass files compiled!'));
// watch .js files