-
-
Notifications
You must be signed in to change notification settings - Fork 471
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
Watch files and directories with Eleventy Dev Server #2626
Comments
There is a feature doing exactly that : the |
Would that require to run |
https://www.11ty.dev/docs/watch-serve/#add-your-own-watch-targets is the feature you want. Note the change in 2.0.0-canary.19 that allows you to addWatchTarget on ignored files: #893 |
|
Sounds great! I currently compile SASS independently through a parallel I just need the browser to be refreshed, not to trigger a site build. What would be the ideal setup to accomplish this? |
I wouldn’t use Though this is the first time I’d noticed an overlap between those two features—interesting thought! |
In that case, I’d have to:
I think there’s something I’m not quite getting. PS. this is the repo I’m working on: https://github.com/patrulea/erick-david/tree/2023 |
Ah, I see what you mean @patrulea! I’m working on trying to sneak 11ty/eleventy-dev-server#19 into the 2.0 release, which I think solves that issue! Subscribe over there! |
It ended up working flawlessly on the stable release. Thank you! |
Browsersync allows you to watch for custom files and directories with the
files
options key. I used it to reload on stylesheet changes (files: ["_site/assets/**/*.css"]
).Is there or will there be a similar feature for Eleventy Dev Server?
The text was updated successfully, but these errors were encountered: