Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.html watch #1

Open
opryshok opened this issue Dec 7, 2017 · 5 comments
Open

.html watch #1

opryshok opened this issue Dec 7, 2017 · 5 comments

Comments

@opryshok
Copy link

opryshok commented Dec 7, 2017

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

@arechsteiner
Copy link
Member

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

@opryshok
Copy link
Author

opryshok commented Dec 7, 2017

Yes :)

@arechsteiner
Copy link
Member

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

@opryshok
Copy link
Author

opryshok commented Dec 8, 2017

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.

@arechsteiner arechsteiner reopened this Dec 11, 2017
@arechsteiner
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants