New postcss config format confusion #2712
Answered
by
simonswiss
Christophvh
asked this question in
Help
-
After i did following command: I get this postcss.config.js file:
But I'm used to adding those 2 plugins like this:
Is the above the same or am I missing something? |
Beta Was this translation helpful? Give feedback.
Answered by
simonswiss
Nov 1, 2020
Replies: 1 comment
-
Hi! They are both essentially the same. As far as I know, the Object syntax has better compatibility with external tooling, so that's what I'd recommend using going forward. We'll probably update the docs to use that syntax everywhere, because for now we show the two different syntaxes in different places of the Tailwind CSS documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Christophvh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
They are both essentially the same. As far as I know, the Object syntax has better compatibility with external tooling, so that's what I'd recommend using going forward.
We'll probably update the docs to use that syntax everywhere, because for now we show the two different syntaxes in different places of the Tailwind CSS documentation.