Added bg- classes to purgecss.

This commit is contained in:
Benjamin A. Shelton 2026-01-06 18:58:47 -07:00
commit 025bb0d52d
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -35,7 +35,7 @@ if ( mix.inProduction() )
// I prefer to add the `.min` suffix on the output files just for convention // I prefer to add the `.min` suffix on the output files just for convention
mix.purgeCss({ mix.purgeCss({
content: ['site/**/*.njk'], 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] extractorPattern: [/[^<>"'`\s]*[^<>"'`\s:]/g]
}) })
.minify('css/main.css') .minify('css/main.css')