Answers for "laravel-mix-purgecss blade.php"

PHP
2

laravel mix purge css

npm install laravel-mix-purgecss --save-dev
  
const mix = require('laravel-mix');
require('laravel-mix-purgecss');

// ...

mix.js('resources/js/app.js', 'public/js')
   .sass('resources/sass/app.scss', 'public/css')
   .purgeCss(); //Add this line and that'll do the job
Posted by: Guest on September-17-2020

Browse Popular Code Answers by Language