Is it possible to run separate instances of postcss in the same project at the same time? #1939
Unanswered
nathangross
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Sorry, can’t help here because the conflict goes not from the PostCSS core, but from other environment |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working in a Laravel (10) project using vite. Frontend we are using Tailwind 4 (alpha) and the backend (Filament PHP) requires Tailwind 3. Both are using postcss.
Tailwind 3: postcss 8
Tailwind 4: @tailwind/postcss
I'm using npm workspaces to help manage the conflicting requirements. I have separate vite configs that point to separate postcss.config.js files in separate dirs.
npm run dev:frontend
), both tailwind css versions are properly compiled by their respective versions ✅npm run build:frontend & npm run build:admin
and they compile correctly ✅npm run dev:frontend & npm run dev:admin
) both tailwind css versions are compiled by tailwind 4 (so the tailwind 3 errors out) ❌Is there a flag or config that I can set to ensure the postcss is handled separately when running
dev
?Happy to provide more code, context, etc. if that helps.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions