Ng-packagr: Feature Request: Provide a way to extract css into a separate file

Created on 24 Jul 2018  路  3Comments  路  Source: ng-packagr/ng-packagr

Type of Issue

[ ] Bug Report
[x] Feature Request

Description

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.

Most helpful comment

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

All 3 comments

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._

Was this page helpful?
0 / 5 - 0 ratings