📜  laravel 混合清除 css - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:47.941000             🧑  作者: Mango

代码示例1
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