-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Removing hash from Webpack bundle #1833
Comments
those are used for cache breaking. You should set the headers to have long cache times and keep the hashes :) |
I know, and I would love to keep 'em. But I'm delivering my bundle to a back-end developer who doesn't use the generated index.html but rather only wants to replace the old bundle with a new one without needing to change the hash. |
Could you just write a script to do that for you? |
@deebloo You could probably write a gulp-script that does that but it seems to me that that would be having two steps in the process that could be reduced to zero steps, adding hash and removing has. Instead of just not adding hash. Thanks for the tip but the question remains, even though apparently badly put, is it possible to change the bundle process to not adding hash rather than is there a way to remvove hash. I like the simplicity of the bundle process with CLI, I need to do absolutely nothing. But here I am in a situation wanting to do something and it just seems to me that this little change should be an ever so simple task. |
If you use |
Does --prod only add the hash and use the environments.prod file? If not, then this isn't a good solution, because they would want the other advantages of using --prod such as the tree-shaking and uglifying. |
Any idea or option to remove hash? I have the same issue. |
We ended up adding these to our build script: |
Thanks, that's helpful @bryanjjohnson . @filipesilva / @deebloo : removing Please reopen the issue and consider this feature request. |
Hash removal option being tracked in #1833 |
Any update on if this will be implemented? I would also need to prevent the hash generation in the name for similar reasons |
any updates? |
Sorry I linked the wrong issue, here is where it's being tracked: #2774 |
Closed on #3885 |
ng build --prod --output-hasing media/none/bundles output-hashing Define the output filename cache-busting hashing mode. Values: none, all, media, bundles |
Is it possible to add the hashing value as a url parameter? eg :
That way the cache busting stays intact and we have the benefit of static named files? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Is there a way to modify settings for the webpack bundles to remove the hash from the js-files and the script-tags generated in index.html?
The text was updated successfully, but these errors were encountered: