]> _ Git - pmi.git/commitdiff
Fix problem with PurgeCSS removing too many styles after menu generation code was...
authorStephen Cameron <stephen@cubedesigners.com>
Mon, 8 Jul 2019 08:05:12 +0000 (10:05 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Mon, 8 Jul 2019 08:05:12 +0000 (10:05 +0200)
webpack.mix.js

index 13ed6291c2dd5d51da8aa5f8fa014360a50d60f7..71b05adc64f27cee6b6d228dc29e3a6ebd320529 100644 (file)
@@ -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
     });