Replies: 3 comments
-
Hey! module.exports = {
plugins: {
"@tailwidncss/postcss": {optimize: false},
},
} |
Beta Was this translation helpful? Give feedback.
-
Why does tailwind do its own minifying? I already have css-minimizer-webpack-plugin set in optimization.minimizer and I can set the cssnano options for all CSS. Is the minimizer supposed to run on the CSS tailwind creates? |
Beta Was this translation helpful? Give feedback.
-
@kocv59 We run our own minifier because this way you don't need to have any other dependencies if you don't want it and we already run I would suggest you still do an optimize run since we heavily rely on CSS nesting internally and the optimization with module.exports = {
plugins: {
"@tailwidncss/postcss": {optimize: {minify: false},
},
} Going to convert this to a discussion since it's not really a bug from what I understand! 👍 |
Beta Was this translation helpful? Give feedback.
-
What version of Tailwind CSS are you using?
v4.1.3
What build tool (or framework if it abstracts the build tool) are you using?
webpack 5.98.0
postcss 8.5.3
postcss-loader 8.1.1
What version of Node.js are you using?
v20.19.0
What browser are you using?
Chrome
Describe your issue
@tailwindcss/postcss is always minifying the build even if webpack has disabled it
I have to set
optimize: false
in @tailwindcss/postcss options but that shouldn't be necessary it should use the same config how other plugins are able to use the webpackminimize
to do minification or not.Beta Was this translation helpful? Give feedback.
All reactions