Skip to content
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

Closed
gamebox opened this issue Feb 6, 2018 · 2 comments
Closed

🙋 Add --rev option to build command for revved filenames #753

gamebox opened this issue Feb 6, 2018 · 2 comments

Comments

@gamebox
Copy link

gamebox commented Feb 6, 2018

🤔 Expected Behavior

When using parcel build, one should be able to supply a --rev option at the cli to have the resulting bundles filename be bundlename-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.

@gamebox
Copy link
Author

gamebox commented Feb 6, 2018

If it helps, I've went through the source and I think I could put in a PR for this relatively easily.

@devongovett
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants