theme-kit icon indicating copy to clipboard operation
theme-kit copied to clipboard

.html watch

Open opryshok opened this issue 8 years ago • 5 comments

Hey. Can you please add ".html watch" to gulpfile.js?

opryshok avatar Dec 07 '17 11:12 opryshok

Not sure I'm getting this right, you want the gulp watcher to trigger the build when you edit the HTML file?

arechsteiner avatar Dec 07 '17 11:12 arechsteiner

Yes :)

opryshok avatar Dec 07 '17 11:12 opryshok

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

arechsteiner avatar Dec 07 '17 12:12 arechsteiner

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.

opryshok avatar Dec 08 '17 09:12 opryshok

Yes, there is a chance that I will do that 😄 Sounds like a good addition because it removes dependencies.

arechsteiner avatar Dec 11 '17 09:12 arechsteiner