Closed coolskin2b closed 3 years ago
Hey, you don't need to install any additional packages because tailwindcss already gives you this functionality. Everything is set up for that just a little detail is missing. Change this 25 line in package.json
"build": "NODE_ENV=production webpack --config config/webpack.prod.js",
Now it removes unused CSS you will have around 5kb files.
First of all, tk you @coolskin2b to point this out. And tk you @avrapaulo for the solution which is obviously correct. I somewhere removed that and.... It's fixed now. Tks to both.:-)
Hello, First thanks for what you have done Stefan. I m looking about the result of the build optimization for the css and i always got 3mo of css file. I m new with thailwind and webpack. I found this doc about purgecss and webpack : https://purgecss.com/plugins/webpack.html#usage after added :
i added this lines in webpack.prod.js
When i have done that the css file size now is : 3 ko.
Do you think this is the good way to reduce the css size or i m wrong and i miss something with your project?
Thanks in advance.