Gulp: Watch for changes in both blender-cloud and pillar folders.
This commit is contained in:
22
gulpfile.js
22
gulpfile.js
@@ -94,10 +94,24 @@ gulp.task('watch',function() {
|
|||||||
livereload.listen();
|
livereload.listen();
|
||||||
}
|
}
|
||||||
|
|
||||||
gulp.watch('src/styles/**/*.sass',['styles']);
|
let watchStyles = [
|
||||||
gulp.watch(source.pillar + 'src/styles/**/*.sass',['styles']);
|
'src/styles/**/*.sass',
|
||||||
gulp.watch('src/scripts/*.js',['scripts']);
|
source.pillar + 'src/styles/**/*.sass',
|
||||||
gulp.watch('src/templates/**/*.pug',['templates']);
|
];
|
||||||
|
|
||||||
|
let watchScripts = [
|
||||||
|
'src/scripts/**/*.js',
|
||||||
|
source.pillar + 'src/scripts/**/*.js',
|
||||||
|
];
|
||||||
|
|
||||||
|
let watchTemplates = [
|
||||||
|
'src/templates/**/*.pug',
|
||||||
|
source.pillar + 'src/templates/**/*.pug',
|
||||||
|
];
|
||||||
|
|
||||||
|
gulp.watch(watchStyles,['styles']);
|
||||||
|
gulp.watch(watchScripts,['scripts']);
|
||||||
|
gulp.watch(watchTemplates,['templates']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user