From ffd7d5513b8e873e717a92dcc1cf9301f1c5a985 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sun, 27 May 2018 07:38:04 -0700 Subject: [PATCH] Rebuild demo when demo files change --- gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 3b44f1fd..aad4105c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -144,8 +144,9 @@ gulp.task('webpack', ['build'], function() { .pipe(gulp.dest('demo/dist/')); }); + gulp.task('watch-demo', ['webpack'], () => { - gulp.watch(['./lib/*', './lib/**/*'], ['webpack']); + gulp.watch(['./demo/*', './lib/**/*'], ['webpack']); }); /**