Confusion about integrating with PostCSS and IE11 support (custom properties) #1491
Replies: 2 comments 5 replies
-
Hey, did you manage to get this working? I wasted quite some hours trying to make See this issue. I created a PR that hopefully gets merged so as to save others time. The other plugin even points this out: Which brings me to the next plugin that you might want to look at which is postcss-css-variables but the caveats is a deal breaker for me. Might be okay for your use case. Probably. From this, I'd probably say Tailwind is great for modern browsers, but if you see your project supporting old browsers at some point in the future, you might want to review all the PostCSS plugins available that you might need. |
Beta Was this translation helpful? Give feedback.
-
If you need to support older browsers, polyfills won't be enough to make things like custom properties or CSS grid work. Better to just not use those features of Tailwind. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
According to the docs, tailwind states it supports ie11.
...yet it uses custom properties that are not supported by ie11.
We're attempting to use this in a minimal nextjs project with the following
postcss.config.js
:The only css file we're importing:
Obviously, since ie 11 doesn't support custom properties, stuff like the
transform
utility are completely ignored.Anyone have any suggestions for this? I've been spending way too much time on trying to get this to work :|
EDIT:
Oh btw, the line
['postcss-custom-properties', { preserve: false }]
appears to not be doing anythingEDIT 2:
Tailwind docs have been updated, only partial support for ie11.
Beta Was this translation helpful? Give feedback.
All reactions