-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Configuration method to manually add watch targets #333
Comments
This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open. The enhancement backlog can be found here: https://github.com/11ty/eleventy/issues?utf8=%E2%9C%93&q=label%3Aneeds-votes+sort%3Areactions-%2B1-desc+ Don’t forget to upvote the top comment with 👍! |
If I understand correctly, this it the feature I need for my use case: I'm using Sass via a gulp task, and want .scss changes to trigger a build. Having to explain to designers that some files need a manual update process is not something I look forward to. 😉 |
@gerwitz typically when I’ve seen users integrate grunt or gulp, they call eleventy from grunt/gulp and don’t have a manual update process. Can you elaborate on a limitation preventing you from doing that? |
Using Eleventy and Sass together, one has two main options:
|
Thanks for the perspective correction! I’m new to the JS-outside-a-browser ecosystem and need to take the time to learn Gulp, et al before assuming everything will work like Ruby/Java/ASP/PHP/CGI/whatever… |
I was about to post a plea and some context here begging for this feature sooner than later, but I found an alternative solution (thought it was worth posting for anyone's future reference... and my own). Try to get your special "watch needy" files somewhere into @gerwitz If you put your In fact any file in It even works if there are no handlers/processors/etc set up for the file type: i.e. saving In my case, I'm using I really wanted to avoid adding a build system (gulp, webpack), to keep things as simple and lean as possible, and to (attempt to) rely only on 11ty for build if I could get away with it. My problem was that 11ty wouldn't watch dependent I didn't want to add the Since you can't |
This shipped with 0.10.0 but was never removed from the Enhancement queue! Thanks @MadeByMike |
@MadeByMike can you confirm that this works with Globs? I don’t see that listed explicitly on the docs https://www.11ty.dev/docs/config/#add-your-own-watch-targets |
While I'm not Mike I can confirm this works with globs.
Awesome! 🥳 |
Strings, globs, etc.
Inspired by #325.
The text was updated successfully, but these errors were encountered: