You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.
Got a very strange one here - when I run PurgeCSS, I am seeing more CSS classes being removed then I expect.
I currently have a set up using Tailwind CSS and PurgeCSS. I would put together a demo repo, however the project I am using it in uses the Vue Storefront framework, so it's a bit tricky for me to get it setup sorry, hopefully I will be able to explain the scenario clearly though:
I have the following code in a template - this isn't being called as an additional component and is just coded into a page file:
When this is run through PurgeCSS, all classes remain except for the .pt-4 class - in fact a majority of any of my .pt-* classes seem to be stripped, despite being used on several elements. I have also noticed that I am losing responsive classes too, which Tailwind css defines as i.e. md: bg-blue lg:bg-red
I am currently using ^1.3.0 of the @fullhuman/postcss-purgecss plugin. My webpack configuration for PurgeCSS is currently:
I understand that there are a few more variables in the way rather then a standard setup, but if anybody has any pointers for me on either of my issues I would be very grateful
Thanks all
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi all
Got a very strange one here - when I run PurgeCSS, I am seeing more CSS classes being removed then I expect.
I currently have a set up using Tailwind CSS and PurgeCSS. I would put together a demo repo, however the project I am using it in uses the Vue Storefront framework, so it's a bit tricky for me to get it setup sorry, hopefully I will be able to explain the scenario clearly though:
I have the following code in a template - this isn't being called as an additional component and is just coded into a page file:
When this is run through PurgeCSS, all classes remain except for the
.pt-4
class - in fact a majority of any of my.pt-*
classes seem to be stripped, despite being used on several elements. I have also noticed that I am losing responsive classes too, which Tailwind css defines as i.e.md: bg-blue lg:bg-red
I am currently using
^1.3.0
of the@fullhuman/postcss-purgecss
plugin. My webpack configuration for PurgeCSS is currently:This is based on the recommendation from the Tailwind CSS docs.
I understand that there are a few more variables in the way rather then a standard setup, but if anybody has any pointers for me on either of my issues I would be very grateful
Thanks all
The text was updated successfully, but these errors were encountered: