Skip to content

Commit

Permalink
fix(scoped-css): whitelist data-v-* attributes (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Mar 9, 2020
1 parent 9f64822 commit f9942de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default function nuxtPurgeCss(moduleOptions) {
styleExtensions: ['.css'],
whitelist: ['body', 'html', 'nuxt-progress', '__nuxt', '__layout'],
whitelistPatterns: [
/.*-(enter|enter-active|enter-to|leave|leave-active|leave-to)/
/.*-(enter|enter-active|enter-to|leave|leave-active|leave-to)/,
/data-v-.*/ // this is needed to prevent removing used scoped css classes
],
whitelistPatternsChildren: [],
extractors: [
Expand Down

0 comments on commit f9942de

Please sign in to comment.