Classes including : not at the beginning are not extracted
See original GitHub issueHey there, I’m currently using Tailwind CSS which is a utility class library. It uses classes that look like .md:w-1/3
which contains a semicolon :
. It doesn’t look like PurgeCSS will extract classes like this properly.
PurifyCSS doesn’t do this right either but has a fork called purifycss-extended
which does a pretty good job at it.
Do you think this is something that can be supported in PurgeCSS?
Thank you!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Python Beautiful Soup - Span class text not extracted
I'm using beautiful soup for the first time and the text from the span class is not being extracted. I'm not familiarized with...
Read more >Extract Class - Refactoring.Guru
Problem: When one class does the work of two, awkwardness results. Solution: Instead, create a new class and place the fields and methods...
Read more >Extracting the Contents of a JAR File
This command does two things: It places a copy of TicTacToe.class in the current directory. It creates the directory images, if it doesn't...
Read more >One Thing: Extract till you Drop. - Clean Coder - Google Sites
It seems like a better approach would be to start out with a single static method, possibly extract other static methods for clarity...
Read more >Extract method | IntelliJ IDEA Documentation - JetBrains
The Extract Method refactoring lets you take a code fragment that can be grouped, move it into a separated method, and replace the...
Read more >
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @andrewdelprete, your help is welcome. I investigated the problem. The selectors were not unescaped by purgecss. Purgecss compared
md:w-2/3
tomd\:w-2\/3
and did not match it.I fixed the issue and publish a new version of purgecss and the webpack plugin. I also updated the webpack example here to show how it can be used with custom extractors.
Let me know if you are still experiencing the issue.
Sorry for leaving this message, I eventually made it work.