Added bg- classes to purgecss.
This commit is contained in:
parent
6698383c7f
commit
025bb0d52d
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue