.html watch
Hey. Can you please add ".html watch" to gulpfile.js?
Not sure I'm getting this right, you want the gulp watcher to trigger the build when you edit the HTML file?
Yes :)
But the build doesn't do anything with the HTML file. It only takes the SCSS files and transpiles them to CSS. There's no reason to run a new build when you're changing the HTML file.
If you want you can fork the project and modify your watcher task like so, but I don't see any benefit in this:
gulp.task('watch', ['build-theme'], function() {
gulp.watch(['scss/*.scss'], ['build-theme']);
gulp.watch(['*.html'], ['build-theme']);
});
Hey. Any chance you would update the gulpfile.js file with built-in local server and autorefresh? I found some info here https://github.com/straykov/initium/blob/master/gulpfile.js. But i'm a non-tech person to do it.
Yes, there is a chance that I will do that 😄 Sounds like a good addition because it removes dependencies.