简体   繁体   中英

Ng Build in prod mode generates vendor files and .Map file even when using - ng build --base-href # --prod --source-map=false --build-optimizer --aot

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

Angular CLI --prod标志负责删除映射文件,删除命令中的等号并将其替换为空格。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM