-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
build and watch produce different hashes #10059
Comments
I'm not quite sure why you are expecting the ids to be the same. As long as the end result references the correct bundles it shouldn't matter right? Why is this an issue for you? |
I can't use the index.html as is because I need to add some tags that I won't know at build time. (Content security) So I was trying to use the assets directly and ignore the generated index.html. I've gone with a more complicated rewriting of the parcel generated index.html (linked above) so I no longer am stuck on this issue. |
Do you need the HTML file at all then? Maybe you could make your JS file(s) the entry point of your parcel build. Then you'll get predictable and completely unhashed output files. |
π bug report
parcel build β¦Β --no-content-hash
andparcel watch β¦Β --no-content-hash
produce different filename hashes.π Configuration (.babelrc, package.json, cli command)
π€ Expected Behavior
Expect the same files with
build
andwatch
π― Current Behavior
build
watch
π Possible Solution
while [[ 1 = 1 ]]; do npx parcel build --target=default --cache-dir=.parcel-cache --no-content-hash; echo Hit Enter to Rebuild; read junk; done
Workaround: I might also see if I can mutate the parcel-generated index.html in memory to serve my purposes.
π¦ Context
I'm trying to iterate on the files and noticed that they didn't seem to be changing when using watch.
And for more context, I am loading the files from a VSCode extension webview, so I have a dynamically generated index.html I need to use that includes some additional pieces.
π» Code Sample
package.json
here - note, it's in an npm workspace.π Your Environment
The text was updated successfully, but these errors were encountered: