简体   繁体   中英

Can I change folder of built files using angular-cli

When building an application with angular-cli, it creates a dist folder with four bundled files ( polyfills.bundle.js , main.bundle.js , vendor.bundle.js and inline.bundle.js ) in its root.

Is it possible to indicate another folder ONLY for these files (eg dist/deps/ instead of dist/ )?

If you want to change the output directory from 'dist' to somewhere else, you can do so by changing outDir in the .angular-cli.json

"apps": [
    {
      "root": "src",
      "outDir": "dist/deps",

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