Kevin192291
Kevin192291

Reputation: 2097

Angular 6 disable cache busting

I am using Angular 6+ and I need to disable cache busting. That is, I don't now want my "ng --prod --aot" to result in a file with a hash. I have had no luck googling for this. Has anyone been able to do this for a prod build?

Thank you very much!

Upvotes: 2

Views: 3396

Answers (1)

Jameel Moideen
Jameel Moideen

Reputation: 7931

You could try with

   ng build -prod --output-hashing none

OR

ng build -prod --output-hashing=none

Below are the options you can pass in --output-hashing

  1. none: no hashing performed
  2. media: only add hashes to files processed via [url|file]-loaders
  3. bundles: only add hashes to the output bundles
  4. all: add hashes to both media and bundles

Upvotes: 3

Related Questions