[ ] Bug Report
[x] Feature Request
Please provide a way to extract css into a separate file, similar to angular cli's --extract-css flag. When providing a library, users may not want to use the default styles. It seems necessary to provide a way to split css out of the bundles and provide a separate css file.
This is not possible at the moment even from Angular and Angular CLI.
extract-css doesn't work on component css, as these will transformed to javascript code when compiled with AOT. --extract-css only works on global styles and not styles referenced using styleUrls.
I suggest you take a look at Angular Material to see how to handle different styles
@alan-agius4 thanks, will do!
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
_This action has been performed automatically by a bot._
Most helpful comment
This is not possible at the moment even from Angular and Angular CLI.
extract-cssdoesn't work on component css, as these will transformed to javascript code when compiled with AOT.--extract-cssonly works on global styles and not styles referenced usingstyleUrls.I suggest you take a look at Angular Material to see how to handle different styles