From 00d1c856f333ef94422b7af007e01eacca0326c1 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 2 Sep 2018 23:40:58 +0200 Subject: Fix gulp watch --- gulpfile.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gulpfile.js') 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; -- cgit v1.2.3