diff options
author | Camil Staps | 2018-09-02 23:40:58 +0200 |
---|---|---|
committer | Camil Staps | 2018-09-02 23:40:58 +0200 |
commit | 00d1c856f333ef94422b7af007e01eacca0326c1 (patch) | |
tree | bdff6f6d57242b646b6eab668b517eb6bed1a917 | |
parent | Update dependencies for vulnerabilities (diff) |
Fix gulp watch
-rw-r--r-- | gulpfile.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gulpfile.js b/gulpfile.js index 79e80ed..5ec8951 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,11 +10,6 @@ var config = { pugPath: './resources/pug' } -function watch() { - gulp.watch(config.sassPath + '/**/*.scss', ['css']); - gulp.watch(config.pugPath + '/**/*.pug', ['pug']); -} - function css() { return gulp.src(config.sassPath + '/style.scss') .pipe(sass({ @@ -54,6 +49,11 @@ function fonts() { .pipe(gulp.dest('./build/assets/fonts')); } +function watch() { + gulp.watch(config.sassPath + '/**/*.scss', css); + gulp.watch(config.pugPath + '/**/*.pug', html); +} + exports.css = css; exports.html = html; exports.img = img; |