ng build --prod --aot minifies js files from assets folder #15423
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: (7.x)Description
Terser minifies js files in assets. I think it should not transform assets files in any way.
It's so strange that even disabling
"optimization": false,
"buildOptimizer": false,
doesn't solve the problem and js assets still changing
🔬 Minimal Reproduction
ng new ang8
copy attached file to assets folder and run
ng build --prod --aot
here is repro: https://github.com/quanterion/cli-assets-bug
you can see that files https://github.com/quanterion/cli-assets-bug/blob/master/src/assets/draco_decoder.js and https://github.com/quanterion/cli-assets-bug/blob/master/dist/ang8/assets/draco_decoder.js are different.
You can see attached file from assets changed in dist folder
and by minifing it Terser breaks it unfortunately:(
draco_wasm_wrapper.zip
The text was updated successfully, but these errors were encountered: