Re-enable PurgeCSS
This commit is contained in:
parent
13cb8a653e
commit
663e9af207
|
@ -1,3 +1,3 @@
|
||||||
[build]
|
[build]
|
||||||
command = "yarn prod && vendor/bin/sculpin generate -e prod"
|
command = "composer prod && yarn prod && cp -R source/build output_prod"
|
||||||
publish = "output_prod"
|
publish = "output_prod"
|
||||||
|
|
|
@ -4,17 +4,11 @@ require('laravel-mix-purgecss');
|
||||||
require('laravel-mix-tailwind');
|
require('laravel-mix-tailwind');
|
||||||
|
|
||||||
mix.disableNotifications()
|
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')
|
.js(['node_modules/vue/dist/vue.js', 'assets/js/app.js'], 'source/build/js/all.js')
|
||||||
.tailwind()
|
.tailwind()
|
||||||
.options({
|
.purgeCss({
|
||||||
processCssUrls: false,
|
globs: [
|
||||||
|
path.join(__dirname, 'output_*/**/*.{html,js}'),
|
||||||
|
],
|
||||||
})
|
})
|
||||||
// .purgeCss({
|
|
||||||
// globs: [
|
|
||||||
// path.join(__dirname, 'output_prod/**/*.html'),
|
|
||||||
// ],
|
|
||||||
// })
|
|
||||||
.options({
|
|
||||||
processCssUrls: false
|
|
||||||
});
|
|
||||||
|
|
Reference in a new issue