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
$ npx parcel build --target=default --cache-dir=.parcel-cache --no-content-hash
β¨ Built in 247ms
β¦
$ ls build/*
build/index.2f8490e0.js
build/index.2f8490e0.js.map
build/index.89a9d63e.css
build/index.89a9d63e.css.map
build/index.html
watch
$ npx parcel watch --target=default --cache-dir=.parcel-cache --no-content-hash
β¨ Built in 31ms
^C
$ ls build/*
build/index.4ff28c68.js
build/index.4ff28c68.js.map
build/index.b5742bdb.css
build/index.b5742bdb.css.map
build/index.html
π 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.jsonhere - note, it's in an npm workspace.
π Your Environment
Software
Version(s)
Parcel
2.13.2
Node
18.20.4
npm/Yarn
10.7.0
Operating System
mac x86-64 15.1.1
The text was updated successfully, but these errors were encountered:
π 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: