Skip to content

Commit f9942de

Browse files
authored
fix(scoped-css): whitelist data-v-* attributes (#75)
1 parent 9f64822 commit f9942de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/module.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export default function nuxtPurgeCss(moduleOptions) {
2727
styleExtensions: ['.css'],
2828
whitelist: ['body', 'html', 'nuxt-progress', '__nuxt', '__layout'],
2929
whitelistPatterns: [
30-
/.*-(enter|enter-active|enter-to|leave|leave-active|leave-to)/
30+
/.*-(enter|enter-active|enter-to|leave|leave-active|leave-to)/,
31+
/data-v-.*/ // this is needed to prevent removing used scoped css classes
3132
],
3233
whitelistPatternsChildren: [],
3334
extractors: [

0 commit comments

Comments
 (0)