-
Notifications
You must be signed in to change notification settings - Fork 105
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
All elm apps rebuild on each change #132
Comments
Is it possible it's connected to #123? I'm curious if commenting this line https://github.com/elm-community/elm-webpack-loader/blob/master/index.js#L135 would fix it for you the same way it does for me. |
I am having the same issue with what sounds like a similar file structure. Tried commenting out various lines but nothing seemed to help. Not a deal breaker but would be nice to have it fixed |
I've run into the same issue and finally got it resolved by removing |
We also just managed to get this working by removing the We did run into an issue were some files were not compiling when file dependencies changed but this was due to some files not having the proper namespaced module name in the main elm file that was initialised in the Javascript. These files shouldn't have been compiling from the start because of the module name but because the |
Interesting to read. I've just tried removing the |
@gavin667 Thank you for sharing this experience! You saved my day yesterday. :-) I ran exactly into the same issue and because of reading your comment in the morning it took very short to fix it. @michaeljones I am 99% sure that this problem is because |
This might be a peculiarity of my setup but I have 4 separate elm apps being built by webpack and when ever I make a change all 4 rebuild. Even when the change is to a file that is only used by one of them.
The rebuilding can be quite quick for 3 of the 4 apps but it is still slows down the experience.
I see output like this on a typical file change:
Though interestingly,
src/Locations.elm
is only one of the 4 elm entry files. Not sure why that name is printed out each time.My set up is that I have a single folder (
server/apps/business
) which has aelm-package.json
and 4 typescript files. Each of those typescript files requires a different.elm
file from thesrc
subdirectory inserver/apps/business
.My webpack elm rule looks like:
I've tried looking at the code. I get the feeling that it is watching all
*.elm
files and rebuilds everything if any of them changes rather than following imports from each entry.elm
file. Understandable if that is the case but I wanted to check in case the behaviour I'm seeing is avoidable with some configuration changes.Thanks for the project. It has made it much easier to add elm into my stack at work.
The text was updated successfully, but these errors were encountered: