I've build angular app using:
ng build --prod --named-chunks --output-hashing=none
It output module-A.js
, module-B.js
as expected but there are some files like default~<view1>~<module-1>~123xzy.js
. (In runtime.js these default files are required)
I want to separate module-A.js
to another domain but I must move also default~<view1>~<module-1>~123xzy.js
, so it also affect view1
.
How can I remove such default~<view1>~<module-1>~123xzy.js
? I.e. Config to combine default~<view1>~<module-1>~123xzy.js
into module-A.js
? (And I don't want refactor all structure code to eliminate such files, is there any other lighter way?)
You can use
ng build --prod --output-hashing none
or only
ng build --prod
Ref link
https://github.com/angular/angular-cli/issues/8344
https://github.com/angular/angular-cli/issues/1833
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With