-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Include resolved paths in watched paths #816
Include resolved paths in watched paths #816
Conversation
@gauravtiwari you wrote the original implementation of that watch list, what do you think about this? |
@maschwenk Thanks for this but looking at the changes I am not very clear. Could you please explain the usage? Do you want resolved paths to be available through webpacker.yml instead? |
In #539 you setup this watch list so that in the test environment, it would lazily compile changed assets. This works great, but for people who have resolved_paths: [] so for most people, my change will not affect them at all |
be60d68
to
be894a5
Compare
@maschwenk Ahh gotcha, thanks. I think earlier, we didn't want to use webpacker.yml for ruby bits hence, explicit accessor to add watched paths but I think later we forgot to deprecate it in favour of cc// @javan |
Looking at it again, I just noticed that this also affects the |
Not sure I understand? |
@gauravtiwari well the original commit for the |
Ahh I see, yep it will do - it's intended to work for all environments 👍 |
+1 for this. I added a folder to the resolved paths as well as the watched paths, but I was wondering why these files only get compiled when I restart my rails server. This PR seems to fix it, so it would be awesome if it could be merged! |
For people who are using resolved paths configurations, it might make sense to include these in the
default_watched_paths
. It won't affect anyone who left the resolved paths[]
and it'll make test env re-compilation work for those who added resolved paths.For folks who still have assets under
app/assets/javascripts/
, this will result in less hair pulling and fewer surprises. However, totally understand if you think this is better handled by an override like:Thanks!