Commit d3ac6aec authored by Robert Knight's avatar Robert Knight

Re-process vendor CSS files when they change

Previously the 'watch-css' task updated H's SCSS files when they changed
but did not reprocess vendor CSS files such as the icomoon font
automatically.
parent bc44b2dc
......@@ -196,7 +196,12 @@ gulp.task('build-css', function () {
});
gulp.task('watch-css', function () {
gulp.watch('./h/static/styles/**/*.scss', ['build-css']);
var vendorCSS = styleFiles.filter(function (path) {
return path.endsWith('.css');
});
var styleFileGlobs = vendorCSS.concat('./h/static/styles/**/*.scss');
gulp.watch(styleFileGlobs, ['build-css']);
});
var fontFiles = 'h/static/styles/vendor/fonts/*.woff';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment