0
votes

I have a Higher version of Angular Cli(6.1.4) globally installed and my project Angular Cli(1.7.4) is lower.

I'm running build in production mode an trying get read of separate vendor .js file and all .map files.

I tired below commands with build-optimizer and making source map to false but still i can see dist folder contains these file.

i'm getting style.bundle.js instead style.bundle.css.

ng build --base-href # --prod --source-map=false --build-optimizer --aot.

Does global CLi causing this issue?

Global CLI-

Local CLI-

Build status

1

1 Answers

0
votes

Angular CLI --prod flag takes care of removing map files, Remove the equal sign in your command and replace it with space.