Skip to content
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

Custom postcss config #79

Open
fracsi opened this issue Jan 8, 2025 · 5 comments
Open

Custom postcss config #79

fracsi opened this issue Jan 8, 2025 · 5 comments

Comments

@fracsi
Copy link
Contributor

fracsi commented Jan 8, 2025

Tailwind cli has a postcss option, which allows the user to load a custom PostCSS configuration.
This allows using additional postcss plugins.

I have created a fork that adds it to the build command and the builder.

@kbond @bocharsky-bw What do you think? Would it be a nice addition?

@kbond
Copy link
Contributor

kbond commented Jan 8, 2025

Hey @fracsi, yeah that looks awesome! For sure open a PR!

Question: should it be a bundle config or command option like you've done in your fork (or both like input_css)?

@fracsi
Copy link
Contributor Author

fracsi commented Jan 8, 2025

@kbond

Question: should it be a bundle config or command option like you've done in your fork (or both like input_css)?

I'm not sure - that's why i linked the fork and not created a PR yet :)

I'm indecisive - postcss config is similar to tailwind config file

  1. Add to config - like tailwind config?
  2. Add to cli as option?
  3. Both?

Right now i'm leaning towards 3.

@kbond
Copy link
Contributor

kbond commented Jan 8, 2025

Sure, 3 sounds good to me.

@j0r1s
Copy link

j0r1s commented Jan 9, 2025

Hello ! I've been trying to use custom PostCSS plugins for a few hours on one of my project running with AssetMapper, does this confirm that it is not possible yet ? or is there any workaround available ?

@fracsi
Copy link
Contributor Author

fracsi commented Jan 9, 2025

@j0r1s Currently it is not possible - i saw your message on Slack yesterday 😄 and i started to work on it to add support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants