Replies: 1 comment 1 reply
-
Perhaps you could consider using the PostCSS CLI and integrating Tailwind as a PostCSS plugin? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Tailwind CLI v3, we leveraged custom PostCSS plugins to effectively manage external Tailwind imports within our Magento 2 theme. This enabled seamless integration and streamlined development. However, v4 removed this capability, creating a significant obstacle for our upgrade.
We relied on this feature to resolve imports from vendor directories outside the primary Tailwind source. While we've explored using Vite as an alternative for CSS compilation and file watching, it introduces several drawbacks. Firstly, it necessitates duplicating source paths, leading to maintenance overhead. Secondly, it fails to monitor changes in external vendor files, impacting our development efficiency.
Restoring the ability to extend the Tailwind CLI with custom actions, specifically regarding PostCSS plugins, would directly address our needs and remove the current blocker preventing our team from migrating to v4.
Beta Was this translation helpful? Give feedback.
All reactions