Hi guys.
I just wonder if anyone is using this nice package laravel-mix-purgecss in October theme. I am creating one using tailwindcss and build with laravel-mix. I read the docs and configure the webpack.mix.js as following:
mix.setPublicPath('./themes/acme/assets');
mix.postCss('./themes/acme/assets/css/tailwind.css', 'dist/css', [
tailwindcss
]).purgeCss({
enabled: mix.inProduction(),
folders: ['./themes/acme/pages', './themes/acme/partials'],
extensions: ['htm', 'js', 'html'],
});
But it seems not working: the bundled css size is the same without purgecss. Any advices?