-
Notifications
You must be signed in to change notification settings - Fork 11.9k
JS support for PostCSS config #27819
Copy link
Copy link
Open
Labels
angular/build:applicationarea: @angular/buildfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
Metadata
Metadata
Assignees
Labels
angular/build:applicationarea: @angular/buildfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
Command
config
Description
Currently the CLI supports custom PostCSS configurations in the format of JSON files. The problem is that the JSON format has its limitation. In our case for example we try to configure CSS purging with the
fullhuman/postcss-purgecssplugin.{ "plugins": { "@fullhuman/postcss-purgecss": { "content": ["**/*.html", "**/*.ts", "**/*.js"], "skippedContentGlobs": ["node_modules/**"], } } }Unfortunately this config is not enough and therefore we would need to configure some extractors:
Describe the solution you'd like
Support PostCSS configuration files writen in JavaScript.
Describe alternatives you've considered
No response