-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Add addWatchTarget() option to config #641
Conversation
The build passed but Travis wigged out... can we re-trigger it? |
Restarted! |
Don't get it... same thing happened. Windows test all pass, but the CI doesn't close and will timeout. I ran this locally on Windows and "Works on my Machine" - ideas? |
Yay \o/ looks like this was a know issue with Windows builds on Travis. Adding an env var More discussion on this here: https://travis-ci.community/t/build-doesnt-finish-after-completing-tests/288 |
@zachleat would it be too much to ping you again now that the build is passing? |
Before I merge this just one question: are the watch targets here relative to the input directory or the project root? |
@zachleat it eventually uses the |
Yay @zachleat "Only those with write access to this repository can merge pull requests." |
Sorry Mike I’ve been swamped here I’ll try to get to this in the next few days! |
@zachleat <3 I know buddy. Take as long as you need. |
START THE PARADE |
Thank you @MadeByMike, this is a lovely addition 👍 |
I'm having trouble getting this to work with watching a single file:
Works, but I don't want to watch that entire directory
☝️ does not work. Can anyone else duplicate? |
Hey @kevinmpowell please file a new issue! |
I'm trying to move away from build processes tacked onto the front of SSGs. This little helper makes this much easier. It allows you to add a custom watch target so that I can tell eleventy, when my scss or javascript files change, I want you to rebuild the site.
Here's how I use it: