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

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?

2

1 Answer

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 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like