Use options.src, watch css

This commit is contained in:
Dan Mindru 2015-10-19 02:21:16 +02:00
parent 0b69a7a7c2
commit cafaf1b5da
2 changed files with 2 additions and 3 deletions

View File

@ -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,',

View File

@ -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']);
});
};