Juan Rada
Juan Rada

Reputation: 3766

Angular 6.x independent component styles bundle

Is it possible to generate CSS bundle file for my angular 6.x App components styles. I tried extractCss true which actually generated inline <style> in my index.html but I would like to rather have an independent components.css.

Upvotes: 1

Views: 201

Answers (1)

nickbullock
nickbullock

Reputation: 6589

No, it is not possible. Only global css can be bundled separetely. Angular core members vision is to always include components style to the bundle (this is by design they said). See this issue https://github.com/angular/angular-cli/issues/7219

Upvotes: 1

Related Questions