Skip to content

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

Closed as duplicate
Closed as duplicate

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.

Activity

  1. angular-automatic-lock-bot commented on May 13, 2026

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  2. locked and limited conversation to collaborators on May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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