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

Update the postcss to v8 for Tailwindcss 2.x support #215

Closed
sahilpurav opened this issue Nov 24, 2020 · 3 comments
Closed

Update the postcss to v8 for Tailwindcss 2.x support #215

sahilpurav opened this issue Nov 24, 2020 · 3 comments

Comments

@sahilpurav
Copy link

Tailwindcss requires postcss v8 and craco uses postcss v7.

Upgrading the tailwindcss to 2.x gives the following error:

image

I've the following configuration in:

postcss.config.js

module.exports = {
  plugins: [
    require('tailwindcss'),
  ],
};

craco.config.js

const { POSTCSS_MODES } = require('@craco/craco');

module.exports = {
  style: {
    postcss: {
      mode: POSTCSS_MODES.file,
    },
  },
};

@sahilpurav
Copy link
Author

Closing this as this has to be done by CRA not craco.

@seawatts
Copy link

seawatts commented Apr 3, 2021

Looks like it just got merged in CRA facebook/create-react-app#10456

@nonameolsson
Copy link

So, should it work with PostCSS 8 since it has been merged into CRA?

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

No branches or pull requests

3 participants