Re-enable PurgeCSS

This commit is contained in:
Oliver Davies 2018-08-10 12:15:14 +01:00
parent 13cb8a653e
commit 663e9af207
2 changed files with 6 additions and 12 deletions

View file

@ -1,3 +1,3 @@
[build]
command = "yarn prod && vendor/bin/sculpin generate -e prod"
command = "composer prod && yarn prod && cp -R source/build output_prod"
publish = "output_prod"

View file

@ -4,17 +4,11 @@ require('laravel-mix-purgecss');
require('laravel-mix-tailwind');
mix.disableNotifications()
.sass('assets/sass/app.sass', "source/build/css")
.sass('assets/sass/app.sass', 'source/build/css')
.js(['node_modules/vue/dist/vue.js', 'assets/js/app.js'], 'source/build/js/all.js')
.tailwind()
.options({
processCssUrls: false,
.purgeCss({
globs: [
path.join(__dirname, 'output_*/**/*.{html,js}'),
],
})
// .purgeCss({
// globs: [
// path.join(__dirname, 'output_prod/**/*.html'),
// ],
// })
.options({
processCssUrls: false
});