diff --git a/tasks/build.js b/tasks/build.js index 7e73f3e..6b9c8d9 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -8,7 +8,7 @@ var gulp = require('gulp'), function buildTask(options){ gulp.task('build', function() { - gulp.src(['./src/**/*.html', '!./src/**/head.html']) + gulp.src([options.src + '/**/*.html', '!' + options.src + '/**/head.html']) .pipe(preprocess({ context: { signature: 'Med venlig hilsen / best regards,', diff --git a/tasks/watch.js b/tasks/watch.js index 59131c1..d8fa827 100644 --- a/tasks/watch.js +++ b/tasks/watch.js @@ -3,9 +3,8 @@ var gulp = require('gulp'); function watchTask(options){ - //@todo watch CSS gulp.task('watch', function(){ - gulp.watch([options.src + '/**/*.html'], ['build']); + gulp.watch([options.src + '/**/*.html', options.src + '/**/*.css'], ['build']); }); };