question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Classes including : not at the beginning are not extracted

See original GitHub issue

Hey 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
Fflorielcommented, Nov 19, 2017

Thanks @andrewdelprete, your help is welcome. I investigated the problem. The selectors were not unescaped by purgecss. Purgecss compared md:w-2/3 to md\: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.

0reactions
ricricucitcommented, Jun 13, 2018

Sorry for leaving this message, I eventually made it work.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found