Add and require laravel-mix-purgecss
This commit is contained in:
parent
7787c4e47d
commit
fb360f2274
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'),
|
||||||
])
|
])
|
||||||
|
|
Reference in a new issue