Skip to content

Webpack builder not using postcss config file in workspace #29659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
Eirmas opened this issue Feb 18, 2025 · 4 comments
Closed
1 task

Webpack builder not using postcss config file in workspace #29659

Eirmas opened this issue Feb 18, 2025 · 4 comments

Comments

@Eirmas
Copy link

Eirmas commented Feb 18, 2025

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Currently it's not possible to upgrade to Tailwind v4 with the Storybook webpack builder because the automatic tailwind configuration is looking for the wrong package.
In other builders, this is not a problem because adding a postcss config file to override the automatic import works fine.

It would be nice if the webpack builder could look for a postcss configuration file to use, or if it would import the correct tailwind postcss package based on the tailwind version.

Linked issue: #28938

Minimal Reproduction

  • Create a angular storybook project using webpack
  • Add Tailwind v4

Your Environment

Latest version of angular

Anything else relevant?

No response

@JoostK
Copy link
Member

JoostK commented Feb 18, 2025

with the Storybook webpack builder

What is this referring to?

Create a angular storybook project using webpack

Could you please elaborate on what this actually means? This is not a concrete instruction to execute, so it's unclear what this means.

@JeanMeche
Copy link
Member

JeanMeche commented Feb 18, 2025

AFAIK this issue is that postcssrc.json config file is only read by the application builder. See #28938 and particularly #28938 (comment)

@clydin
Copy link
Member

clydin commented Feb 20, 2025

As mentioned above, custom postcss configuration file usage requires the use of the application build system. Please consider migrating to take advantage of this and a variety of other features.

For updates on integrated Tailwind v4 support, please subscribe to #28938

@clydin clydin closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2025
@JeanMeche JeanMeche marked this as a duplicate of #29711 Feb 26, 2025
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants