Developmint / nuxt-purgecss

Drop superfluous CSS! A neat PurgeCSS wrapper for Nuxt.js
MIT License
478 stars 18 forks source link

fix(scoped-css): whitelist data-v-* attributes #75

Closed simllll closed 4 years ago

simllll commented 4 years ago

purgecss 2.x removes unused classes when attributes do not match. this is the case when scoped css is used, therefore whitelisting of data-v-* is required.

this is only needed for "webpack" mode, as with the purgecss mode the classes are not scoped yet.

https://github.com/FullHuman/purgecss/issues/277#issuecomment-581475910

Beware, depends on https://github.com/FullHuman/purgecss/pull/279 which is not merged.

simllll commented 4 years ago

Depending pr has landed and new release is already out!

manniL commented 4 years ago

Thank you ☺️