-
-
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
🙋 Add --rev option to build
command for revved filenames
#753
Comments
Closed
If it helps, I've went through the source and I think I could put in a PR for this relatively easily. |
Should be solved by #1025 which generates content-hashed filenames for static assets. Please help test using the master branch - a release will hopefully come next week! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🤔 Expected Behavior
When using
parcel build
, one should be able to supply a--rev
option at the cli to have the resulting bundles filename bebundlename-LAST_SIX_OF_MD5_HASH.ext
😯 Current Behavior
No such option exists, requiring a multistep build process for production deployments
💁 Possible Solution
I think the cli flag discussed above is the best solution.
🔦 Context
We like to have all of our application bundles be "revved" with a chunk of the MD5 hash of the file appended to the bundle name for easy cache invalidation for the client. We can do this now, but it requires yet another step in the build process.
The text was updated successfully, but these errors were encountered: