How to stop renaming created files from prod build to angular cli

I don't want angular cli to rename the generated script files to ng build --prodand put its link in my index.html file. I just want to use the same name again and again, as for building development for building prod.

I know that the file .angular-cli.jsoncontains the entire configuration, but which option do I need to place in order to stop renaming the files for the prod assembly.

Another option, as angular cli uses webpackinternally, is there any way to configure it webpackto handle renaming files.

+4
source share
1 answer

ng build -prod -output-hashing none

0

Source: https://habr.com/ru/post/1658220/


All Articles