Angular 7 build: How to remove output hash and default~<view1>~<module1> file?
10,793
You can use
ng build --prod --output-hashing none
or only
ng build --prod
Ref link
Author by
o0omycomputero0o
Updated on June 16, 2022Comments
-
o0omycomputero0o almost 2 years
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 likedefault~<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 alsodefault~<view1>~<module-1>~123xzy.js
, so it also affectview1
.How can I remove such
default~<view1>~<module-1>~123xzy.js
? I.e. Config to combinedefault~<view1>~<module-1>~123xzy.js
intomodule-A.js
? (And I don't want refactor all structure code to eliminate such files, is there any other lighter way?)