Enable PurgeCSS on build
This commit is contained in:
parent
05d4f97965
commit
8a1f47571f
|
@ -1,5 +1,7 @@
|
|||
let mix = require('laravel-mix')
|
||||
|
||||
require('laravel-mix-purgecss')
|
||||
|
||||
mix.disableNotifications()
|
||||
.postCss('resources/css/app.css', 'source/dist', [
|
||||
require('tailwindcss')(),
|
||||
|
@ -13,3 +15,6 @@ mix.disableNotifications()
|
|||
'source/**/*.twig'
|
||||
]
|
||||
})
|
||||
.purgeCss({
|
||||
folders: ['output_*', 'resources']
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue