laravel mix purge css

Solutions on MaxInterview for laravel mix purge css by the best coders in the world

showing results for - "laravel mix purge css"
Steve
16 Oct 2019
1npm install laravel-mix-purgecss --save-dev
2  
3const mix = require('laravel-mix');
4require('laravel-mix-purgecss');
5
6// ...
7
8mix.js('resources/js/app.js', 'public/js')
9   .sass('resources/sass/app.scss', 'public/css')
10   .purgeCss(); //Add this line and that'll do the job