From deefb44a13b69c3285ba2a4da7007fdb71037943 Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Mon, 8 Jul 2019 10:05:12 +0200 Subject: [PATCH] Fix problem with PurgeCSS removing too many styles after menu generation code was moved to Cubist package. WIP #2731 @0.25 --- webpack.mix.js | 3 +++ 1 file changed, 3 insertions(+) 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 }); -- 2.39.5