From e1da73aea7cd6e2622b6b7ee9441a1d70f52e23e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 25 Mar 2019 17:15:04 +0000 Subject: [PATCH] Simplify PurgeCSS configuration --- webpack.mix.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/webpack.mix.js b/webpack.mix.js index 05b7a609..12d7d8ba 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -15,10 +15,7 @@ mix.js([ ], 'source/dist/js/app.js') mix.purgeCss({ - globs: [ - path.join(__dirname, 'assets/js/**/*.{js,vue}'), - path.join(__dirname, 'output_*/**/*.html'), - ], + folders: ['assets', 'output_*'], whitelistPatterns: [/language/, /hljs/], whitelistPatternsChildren: [/^markdown$/] });