From 663e9af20736138e2750c83dd5a3e72b4fca23c6 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 10 Aug 2018 12:15:14 +0100 Subject: [PATCH] Re-enable PurgeCSS --- netlify.toml | 2 +- webpack.mix.js | 16 +++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/netlify.toml b/netlify.toml index 6fc7033..75fb39b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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" diff --git a/webpack.mix.js b/webpack.mix.js index 494ba1e..9154ecd 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -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 - });