-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the styleExtensions attribute for? #49
Comments
Hey @bart 👋 PurgeCSS has likely problems to detect what CSS classes you use because Element-UI is a component-based library. As it doesn't know the content of the components you use, it doesn't know that the CSS is used at all. But this is explained in some other threads/issues. Generally it is difficult to use purgecss with vue-based component css libraries. |
Hey @manniL , thanks a lot for you quick answer. I know that it's difficult to use PurgeCSS with a component based Nuxt plugin / framework. After struggling around with that issue I found a solution which might not be ideal but maybe someone who comes up with the same problem can use a similar approach. I'm using the
Cheers 🎉 |
Hi Bart, how do you include whitelister in nuxt.config.js. It doesn't work for me. Thanks. |
Hey everyone,
I'm running a nuxtJS project with element UI and I'm not be able to get it running in build mode. PurgeCSS removes all element UI classes. So I looked into the configuration options and found
styleExtensions
but no information about it. Could anyone explain in one or two sentences what this option does? Is it thecss
option of purgeCSS? Thanks!The text was updated successfully, but these errors were encountered: