Is it possible to build separate CSS file with angular-cli?

前端 未结 3 949
予麋鹿
予麋鹿 2020-12-16 12:12

By default everything is bundled in:

  • inline.bundle.js
  • polyfills.bundle.js
  • styles.bundle.js
  • vendor.bundle.js
  • main.bundle.js<
3条回答
  •  悲哀的现实
    2020-12-16 12:16

    You can do this using --extract-css flag of ng build. This is the default in --prod mode. More details here: https://github.com/angular/angular-cli/wiki/build

提交回复
热议问题