-
-
Notifications
You must be signed in to change notification settings - Fork 496
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
Allow addWatchTarget to watch ignored files #893
Comments
I'm wondering the same - it does not seem to be working. Diving into Eleventy internals, I noticed the watch targets are set in the If there's anything @nhoizey and I are missing, let us know. |
Ran into this issue as well. I'm attempting to develop Nunjucks macros I'm storing in a module, which I'm accessing via I can certainly edit macros in my Eleventy project and copy them to my node module, but I'd love saving a step and reducing redundancy. |
I still have this issue. Tried several syntaxes, with glob or not, and nothing is triggered when I change my Sass files… 🤷♂️ |
@nhoizey , not sure if this will help or not, but this is working in my project: Did you try starting the path with |
@Paul-Hebert I did write it like you, without success |
Ahh dang, I'm not sure what's going on then 😕 |
This isn't working for me either, but it was working at some point. I was targeting the build files (output from webpack), like this: eleventyConfig.addWatchTarget('./site/build/') I have also tried targeting the |
I noticed 11ty adds In
This prevented Eleventy from picking it for watching.
YMMV (if you have template/content heavy sites or markdown/other template files in folders that were previously ignored by .gitignore this might add to build time and/or produce extra pages). |
That did it for me, and it explains why it was working (before I added the folder to .gitignore). Thank you @therealpecus Maybe there should be a note about this (.gitignore) in the documentation regarding |
Or perhaps a warning of some level?
|
A change proposed to solve 11ty#464 See also 11ty/eleventy#893
I made a PR for a minor doc update to start. Totally support @Ryuno-Ki proposal but I am short on time at the moment |
@therealpecus OMG, thanks for the explanation! Maybe we could ask Eleventy not to ignore files that are in |
A long time in the making, but we are now decoupling configuration ignores for watching from ignores for processing. Docs are building now on: Practically, this means additions to |
This will ship with v2.0.0-canary.18 |
I'm trying to use @MadeByMike's
addWatchTarget()
to react to Sass files changes, but it does nothing.Here's what I've put in my
.eleventy.js
file:And here are my Sass files:
https://github.com/nhoizey/nicolas-hoizey.com/tree/master/src/_assets/sass
Any idea why this doesn't work?
Thanks.
The text was updated successfully, but these errors were encountered: