Delay copying of elm files to /gen folder until cli app is done #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before this change
webpack
started compiling before the cli versionif the app was compiled in
doCliStuff
.Not sure how but this was causing
webpack
to send thecli
versionof the app to the browser when
main.js
was requested. This causedthe app to not render anything (because it was a worker app) and
not show any errors.
The change just waits until the
cli
finished compiling to onlythen move the
.elm
files to the/gen
folder, triggeringwebpack
to recompile using the correct (ui version) of the app.
This is to fix: #22
@dillonkearns I am sure there is a better solution, but I just couldn't take it anymore 😄 . I am happy to use my fork in the meantime while you work out a better solution, so feel free to close in that case 👍 .
Thank you again for your work!