From 025bb0d52dd1435137fecb06835e597a72d538a7 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Tue, 6 Jan 2026 18:58:47 -0700 Subject: [PATCH] Added bg- classes to purgecss. --- sources/webpack.mix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/webpack.mix.js b/sources/webpack.mix.js index c765d8a..055cb7c 100644 --- a/sources/webpack.mix.js +++ b/sources/webpack.mix.js @@ -35,7 +35,7 @@ if ( mix.inProduction() ) // I prefer to add the `.min` suffix on the output files just for convention mix.purgeCss({ content: ['site/**/*.njk'], - safelist: ['menu-visible', 'loaded', 'expanded', /^type-/, /^page-/, /[data-src]/], + safelist: ['menu-visible', 'loaded', 'expanded', /^type-/, /^bg-/, /^page-/, /[data-src]/], extractorPattern: [/[^<>"'`\s]*[^<>"'`\s:]/g] }) .minify('css/main.css')