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 from Parcel installation guide #1227

Merged
merged 2 commits into from Mar 25, 2022

Conversation

devongovett
Copy link
Contributor

Parcel v2.4.0 now uses @parcel/css by default for auto prefixing and transpilation (like postcss-preset-env). It shows a warning telling users to remove autoprefixer from their postcss config file, which is now redundant with the builtin auto prefixing support and can improve performance.

Unfortunately, it looks like the tailwindcssCLI doesn't have a way to skip autoprefixer when generating a postcss config, so I removed the -p option and created the postcss config containing only tailwindcss manually in these instructions for now.

It also seems that autoprefixer is a peer dependency of tailwindcss, and you do get a warning during install when it isn't added. Maybe that could be made optional instead?

Also switched from a postcss.config.js to a .postcssrc which enables Parcel's caching to work better.

@vercel
Copy link

vercel bot commented Mar 24, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tailwindlabs/tailwindcss-com/C8w6rS2kqoMnn3CrM8mjWW6zxbq1
✅ Preview: https://tailwindcss-com-git-fork-devongovett-patch-1-tailwindlabs.vercel.app

@adamwathan
Copy link
Member

Thanks man! 🙌 I've opened a PR to kill the peer-dependency as well, so will have that sorted in the next patch: tailwindlabs/tailwindcss#7949

@adamwathan adamwathan merged commit af72b3a into tailwindlabs:master Mar 25, 2022
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

2 participants