Replies: 4 comments
-
Yes, tailwind accepts only the handler function as the plugin. Originally, that was the only option.
In the future, other features might get added to plugins through the function or it could become mandatory (in a major release). |
Beta Was this translation helpful? Give feedback.
-
Ah. I found this super confusing as the docs demonstrate creating a plugin by using |
Beta Was this translation helpful? Give feedback.
-
Don't worry about what you see in other repos, just worry about what it says in the docs :) What's in the docs works and is what we recommend. |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
I’ve been pretty confused looking at other people’s source code and comparing that to the official docs, which states:
I have found that you can omit the call to
plugin
and everything appears to work as expected — does anyone understand why that works?Beta Was this translation helpful? Give feedback.
All reactions