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?)
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?)
2 Answers
Reset to default 19You 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
try adding common-chunks abd move with your separated modules