Skip to content

Conversation

@devongovett
Copy link

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.

2 participants