Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the use of --output-hashing=all in angular build?

Tags:

angular

When we create build for production then we use a command as -

ng build --aot --output-hashing=all --prod --base-href "/xyz/" --deploy-url "/xyz/"

What is use of --output-hashing=all?

like image 672
Praveen Barawal Avatar asked Sep 12 '25 05:09

Praveen Barawal


1 Answers

From Angular Documentation:

Define the output filename cache-busting hashing mode.

So, if your parameter is all, your generated files would look like:

main.62beb1fb93041eb44194.js
like image 82
Asaf Avatar answered Sep 13 '25 22:09

Asaf