Problem statement: I want to minify my all scripts which is why I am using the --prod tag in my build script but it's causing an issue without the --prod tag my build is generated successfully but the build size is large.
with the --prod tag I am facing the below issue ERROR in vendor.bundle.js from UglifyJs Unexpected token: operator (>) [vendor.bundle.js:22219,39]
My script: "build": "ng build --watch --output-hashing none --aot --prod --vendorChunk=true --build-optimizer",
Thanks in advance