aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-07 04:43:25 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-07 04:43:25 +0800
commitbd9549bddc7257c1fc01a68178aa8973db29a3a1 (patch)
treeed25b3cc15fbab663329fa68c77c77a61dde4aba /gulpfile.js
parent600f3bfdc9ced0e8f3a1faceb23410d1f7bf5c9d (diff)
downloadtangerine-wallet-browser-bd9549bddc7257c1fc01a68178aa8973db29a3a1.tar
tangerine-wallet-browser-bd9549bddc7257c1fc01a68178aa8973db29a3a1.tar.gz
tangerine-wallet-browser-bd9549bddc7257c1fc01a68178aa8973db29a3a1.tar.bz2
tangerine-wallet-browser-bd9549bddc7257c1fc01a68178aa8973db29a3a1.tar.lz
tangerine-wallet-browser-bd9549bddc7257c1fc01a68178aa8973db29a3a1.tar.xz
tangerine-wallet-browser-bd9549bddc7257c1fc01a68178aa8973db29a3a1.tar.zst
tangerine-wallet-browser-bd9549bddc7257c1fc01a68178aa8973db29a3a1.zip
Use 4.x pattern for watching scss
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 126acccb8..9604c4f6d 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -148,6 +148,9 @@ gulp.task('copy', gulp.series(gulp.parallel(...copyStrings), 'manifest:productio
gulp.task('copy:watch', function(){
gulp.watch(['./app/{_locales,images}/*', './app/scripts/chromereload.js', './app/*.{html,json}'], gulp.series('copy'))
})
+gulp.task('watch:style', function(){
+ gulp.watch(['ui/app/css/**/*.scss'], gulp.series(['build:scss']))
+});
// lint js
@@ -191,7 +194,7 @@ gulp.task('build:scss', function () {
});
gulp.task('watch:scss', function () {
return gulp.src('ui/app/css/index.scss')
- .pipe(watch('ui/app/css/**/*.scss'))
+ // .pipe(watch('ui/app/css/**/*.scss'))
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(sourcemaps.write())
@@ -237,7 +240,7 @@ gulp.task('zip', gulp.parallel('zip:chrome', 'zip:firefox', 'zip:edge', 'zip:ope
// high level tasks
-gulp.task('dev', gulp.series('build:scss', 'dev:js', 'copy', gulp.parallel('watch:scss', 'copy:watch', 'dev:reload')))
+gulp.task('dev', gulp.series('build:scss', 'dev:js', 'copy', gulp.parallel('watch:style', 'copy:watch', 'dev:reload')))
gulp.task('build', gulp.series('clean', 'build:scss', gulp.parallel('build:js', 'copy')))
gulp.task('dist', gulp.series('build', 'zip'))