Skip to content

Support postcss.config.js / postcssrc.js #32990

@vz-tl

Description

@vz-tl

Command

build, serve

Description

So far Angular build only supports postcss configs in JSON format but JS-based configs aren't picked up.
However, using JS-based configs allows conditional configuration e.g. based on the current build, which makes using postcss more flexible as when using static JSON configs.

Is there a serious reason not to support JS configs? At a first glance it should be pretty straightforward to support those formats, too, without overcomplicating things. So, I'd like to request support for JS based postcss configs.

Thank you!

Describe the solution you'd like

Add support for postcss.confi.js / postcssrc.js

Describe alternatives you've considered

An alternative would be to configure a specific postcss.config.json per build configuration via angular.json, but to me this feels overcomplicating things compared to supporting JS format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions