angularangular-cli

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


By default everything is bundled in:

Is it possible to have separate CSS file?


Solution

  • 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