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')