You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have an existing build, make changes to modal-prompt.js, and then run npm run build, in the general case the modal code changes will not be in the resulting build. It appears you have to make changes to some other file (I'm not sure exactly which will work) or completely delete the current build and build from scratch, to ingest the changes.
I would like to figure out a fix because I have a bunch of modal changes I want to finish up and the current dev cycle is too slow and painful to get through them.
Research:
Find a quick way to tell whether changes get built (without having to load in browser)
Find which files trigger the changes to get into a build and which don't
Try to track through the Makefile to understand why.
The text was updated successfully, but these errors were encountered:
There are a few workflows that have existed for a while where I have to write touch src/web/js/beforePyret.js (which is the main webpack entrypoint) before rebuilds trigger. It happens sometimes for the dev Pyret compiler/runtime, too, leading to “Pyret failed to load” until touch and rebuild.
Which means that as far as make knows, it should only re-run webpack when that one file changes. I think that target should include dependencies on every file that gets included by the webpack config, so that it knows to re-run webpack if any of them change.
I can play around with getting the list exactly right.
Oh that sure sounds like a reasonable culprit! Please do find the right dependency list if you can; I got bitten by this today and forgot how annoying it was to have to guess which file to touch to make the rebuild go through...
Problem
If you have an existing build, make changes to
modal-prompt.js
, and then runnpm run build
, in the general case the modal code changes will not be in the resulting build. It appears you have to make changes to some other file (I'm not sure exactly which will work) or completely delete the current build and build from scratch, to ingest the changes.I would like to figure out a fix because I have a bunch of modal changes I want to finish up and the current dev cycle is too slow and painful to get through them.
Research:
Makefile
to understand why.The text was updated successfully, but these errors were encountered: