Skip to content

After update to 4.0, my setup with webpack no more works #15790

Closed Answered by GoulartNogueira
MartinAbilev asked this question in Help
Discussion options

You must be logged in to vote

In case you want to make a manual fix, here are all the changes that were made automatically:

package.json

  "devDependencies": {
-     "autoprefixer": "^10.4.20",

-     "tailwindcss": "^3.4.16",
+     "tailwindcss": "^4.0.0",

+     "@tailwindcss/postcss": "^4.0.0",
}

postcss.config.js

module.exports = {
  plugins: {
-    tailwindcss: {},
-    autoprefixer: {},
+    '@tailwindcss/postcss': {},
  },
}

tailwind.config.js (removed file)

globals.css

- @tailwind base;
- @tailwind components;
- @tailwind utilities;

+ @import 'tailwindcss';
+ 
+ /*
+   The default border color has changed to `currentColor` in Tailwind CSS v4,
+   so we've added these compatibility styles to make sure everythi…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@jackmarsh
Comment options

Comment options

You must be logged in to vote
1 reply
@GoulartNogueira
Comment options

Answer selected by MartinAbilev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants