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
Next init/install needs to be updated #10275
Comments
Also, the commerce example includes https://github.com/vercel/commerce/blob/main/site/postcss.config.js |
Hey! The docs are for just installing Tailwind CSS. If there are other tools you need for your project of course you'll want to follow the instructions for those tools. You don't need You only need |
OK, it's great to know that. Still, if someone uses any external non-Tailwind component, it might make sense to add back the Next.js defaults. Or if someone adds Tailwind to an existing project, the official instructions basically disable a couple of PostCSS features which were used before. |
What version of Tailwind CSS are you using?
3.2.4
What build tool (or framework if it abstracts the build tool) are you using?
Next.js 13.1.1
What version of Node.js are you using?
v16.17.1
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://github.com/hyperknot/next-tailwind-bug
In repo, run build, go to .next/static/css, run prettier and and look at the first line. It shows
width <= 50rem
which means the preset-env plugin is not applied.Describe your issue
The simplified config (
tailwindcss
+autoprefixer
) is not enough. We need to include a full config, like this. It also means we need to installpostcss-flexbugs-fixes
andpostcss-preset-env
in addition.I've opened in issue in Next for this:
vercel/next.js#44286
The text was updated successfully, but these errors were encountered: