nuxt-modules / tailwindcss

Tailwind CSS module for Nuxt
https://tailwindcss.nuxtjs.org
MIT License
1.68k stars 183 forks source link

install with nuxi isn't dev dependency #905

Closed flomero closed 1 month ago

flomero commented 1 month ago

Environment

Reproduction

No response

Describe the bug

if you use npx nuxi@latest module add tailwindcss, as recommended here, it saves tailwind as a dependency in package.json

all other recommended ways install save it as a dev dependency (including the Tailwind Docs)

Additional context

No response

Logs

No response

ineshbose commented 1 month ago

Thanks for opening an issue. It may be how nuxi is configured - but Nuxt doesn't care between dependencies or devDependencies - is it causing issues to you as a bug?

flomero commented 1 month ago

haven't encountered any concrete bugs. just realised that it was weird that all other places recommended to use devDependency except for the "quick install"

ineshbose commented 1 month ago

Yes, that is a fair point though 🙂

Can track here - https://github.com/nuxt/cli/issues/454