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

Support for chunk hashes #24

Closed
pstoica opened this issue Apr 9, 2015 · 3 comments
Closed

Support for chunk hashes #24

pstoica opened this issue Apr 9, 2015 · 3 comments

Comments

@pstoica
Copy link

pstoica commented Apr 9, 2015

I'd like to use chunk hashes since I'm dealing with a large amount of files used in all sorts of ways, and busting cache on each deployment for all files isn't ideal.

Seems like it'd be possible to add the chunkhash to each chunk object, so this is possible:

{%=o.htmlWebpackPlugin.files.chunks.main.entry%}?{%=o.htmlWebpackPlugin.files.chunks.main.chunkhash%}

And this could be automated so you can pass chunkhash: true and add that as a query param.

If this sounds good, I'd be glad to make a PR!

@pstoica
Copy link
Author

pstoica commented Apr 9, 2015

Actually, does this already support any filename template you supply in webpack.config.js? You can just refer to the file by the entry key?

@pstoica
Copy link
Author

pstoica commented Apr 10, 2015

This works just great, sorry for not trying it out first!

@pstoica pstoica closed this as completed Apr 10, 2015
@lock
Copy link

lock bot commented Jun 1, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant