From: Stephen Cameron Date: Mon, 8 Jul 2019 08:05:12 +0000 (+0200) Subject: Fix problem with PurgeCSS removing too many styles after menu generation code was... X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=deefb44a13b69c3285ba2a4da7007fdb71037943;p=pmi.git Fix problem with PurgeCSS removing too many styles after menu generation code was moved to Cubist package. WIP #2731 @0.25 --- diff --git a/webpack.mix.js b/webpack.mix.js index 13ed629..71b05ad 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -36,6 +36,9 @@ mix.js('resources/js/app.js', 'public/js') // } }) .purgeCss({ + globs: [ + path.join(__dirname, 'vendor/cubist/**/*.php'), // Some classes (eg. nav) might be present only here + ], whitelistPatterns: [/grid-.*/], // Don't purge the grid-* custom classes since they can be used dynamically });