From e33ac27d6ca46d52b6859fe574edeaeeb1664e55 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 17 Dec 2017 19:22:09 +0800 Subject: [PATCH] Do compilation before entering watching mode --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index b8c8a27f..95df88d6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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