-
-
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
Setting the enabled property of purgeCSS to true will invalidate the styles in the group #164
Comments
Because you use the group syntax, the classes "sm:pl-4" and "sm:pr-4" are not found by purgecss in the markup. You can whitelist the classes manually. PS: Windicss should not need purgeCSS as they have their own extractors. |
Thank you for your answer! Let me refer to the relevant document of windicss 😆 |
The question is mentioned in the title.
Here is
package.json
Here is my
nuxt.config.js
configHere is my template.
And the last one is
windi.config.js
hen I set the
![image](https://user-images.githubusercontent.com/18112461/218249174-3c179def-ef99-41de-b1a4-3512b80f991f.png)
enabled
property of purgeCSS to true, which will invalidate the styles in the group. That is to say,sm:text-100px
is available, but thesm:(pl-4 pr-4)
can't work.However, if I set it to false, everything is ok...!
Can anyone help me solve this issue?
Thank you a lot!
The text was updated successfully, but these errors were encountered: