Closed tarponjargon closed 4 years ago
PurgeCSS 2.0+ will remove classes with unused attributes. They are used to scope vue SFCs in build time.
Adding the line below to the configuration should fix this issue.
whitelistPatterns: [ /data-v-.*/ ],
Perfect - thanks much!
I upgraded the webpack purgecss-webpack-plugin from 1.6 to 2.1.2 and now the styles in my vue single file components are getting stripped in my production build (seeming to indicate purgecss isn't finding the vue files).
I reverted back to 1.6 and everything worked fine again. What am I missing?
The relevant parts of my webpack.config.js:
I attempted using the paths that are in the docs, with same result: