Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove autoprefixer as peer-dependency #7949

Merged
merged 3 commits into from Mar 25, 2022
Merged

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.

None yet

1 participant