Add and require laravel-mix-purgecss

This commit is contained in:
Oliver Davies 2019-05-16 13:14:30 +01:00
parent 7787c4e47d
commit fb360f2274
2 changed files with 3 additions and 0 deletions

View file

@ -7,6 +7,7 @@
"devDependencies": { "devDependencies": {
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"laravel-mix": "^2.1.14", "laravel-mix": "^2.1.14",
"laravel-mix-purgecss": "^4.1.0",
"tailwindcss": "^1.0.1" "tailwindcss": "^1.0.1"
} }
} }

View file

@ -1,5 +1,7 @@
let mix = require('laravel-mix'); let mix = require('laravel-mix');
require('laravel-mix-purgecss')
mix.postCss('src/main.css', 'dist', [ mix.postCss('src/main.css', 'dist', [
require('tailwindcss')('./tailwind.config.js'), require('tailwindcss')('./tailwind.config.js'),
]) ])