Use options.src, watch css
This commit is contained in:
parent
0b69a7a7c2
commit
cafaf1b5da
|
|
@ -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,',
|
||||
|
|
|
|||
|
|
@ -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']);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue