Closed espositodaniele closed 6 years ago
When using laravel-mix-purgecss outside of Laravel, you need to tell it where to look.
Didn't read with attention the documentation provided. It happens sometimes :laughing:
For anybody else wondering, like me: You have to specify the output-path
mix.sass('src/css/style.scss', 'dist/css/')
.options({
processCssUrls: false,
postCss: [tailwindcss('./tailwind.config.js')],
})
.purgeCss({
folders: ['dist'],
});
Hello there,
I'm trying to use the purgeCss/laravel mix plugin in my webpack configuration to remove unused css from my project with no success.
webpack.mix.js
When i run
npm run production
i got this error:Did anyone face this error? I will really appreciate any help.
Thanks