Skip to content

Conversation

@adamwathan
Copy link
Member

We list autoprefixer as a peer-dependency because it's used by the CLI, but it's not actually needed by Tailwind itself. If you are using a build tool other than our CLI, you might not need it at all (for example Parcel handles vendor prefixing on its own without autoprefixer), so users aren't actually always required to install it.

This makes our handling of autoprefixer and cssnano consistent, which are both used by the CLI but autoprefixer was marked as a peer-dependency and cssnano wasn't. We compile these peer-dependencies into what we distribute via npm anyways so that there's a fallback available if people don't install them (for instance using npx tailwindcss without installing Tailwind locally) so everything will continue to work fine anyways.

/cc @devongovett

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants