Skip to content

Commit

Permalink
add a default whitelist to purgecss
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-rogerson committed Aug 17, 2019
1 parent 15accce commit f8c7659
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ if (config.purgeCssGrabFolders.length) {
mix.purgeCss({
enabled: mix.inProduction(),
folders: config.purgeCssGrabFolders, // Folders scanned for selectors
whitelist: ["html", "body", "active", "wf-active", "wf-inactive"],
whitelistPatterns: [],
extensions: ["php", "twig", "html", "js", "mjs", "vue"],
})
}
Expand Down

0 comments on commit f8c7659

Please sign in to comment.