Why Isn't tailwindcss v4 a devdependency like v3? #13854
Closed
radiorambo
started this conversation in
General
Replies: 1 comment 5 replies
-
You can install it as a dev dependency if you want, doesn’t really matter. I’ve generally made things dependencies if they are required to produce the build and dev dependencies if they aren’t (like prettier, eslint, etc.) but it doesn’t really matter since everything is bundled anyways. In Vite it might actually be better for it to be a dev dependency so it doesn’t think it needs to actually serve the source files through the Vite dev server, that used to matter but not sure anymore. |
Beta Was this translation helpful? Give feedback.
5 replies
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.
-
The default installation command mentioned in the alpha release blog is
npm install tailwindcss@next @tailwindcss/vite@next
which when installed, getting installed as a dependency rather than devdependency. But tailwindcss compiles to css whennpm run build
then why not install as devdependency?Beta Was this translation helpful? Give feedback.
All reactions