Recently I upgraded to Angular CLI 6.0.3. My previous build script was
"build": "ng build --output-path ../public/ui", which worked fine and generated files
/ui/inline.bundle.js”.
/ui/polyfills.bundle.js”.
/ui/vendor.bundle.js”.
/ui/styles.bundle.js”.
/ui/main.bundle.js”
I notice that after upgrade, the files been generated have different names
main.js
polyfills.js
runtime.js
styles.js
vendor.js
I thought that maybe the default build is prod so I changed my script to
"build": "ng build --dev --output-path ../public/ui",
but I get error Unknown option: '--dev'
What am I doing wrong? Have the generated file name changed in v6?
ng buildusesdevby default. But you can change the build target like so:"build:stage": "ng build --configuration=stage". For more see angular.io/guide/workspace-config