Enable PurgeCSS on build

This commit is contained in:
Oliver Davies 2019-04-27 21:41:49 +02:00
parent 05d4f97965
commit 8a1f47571f

View file

@ -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']
})