css-docs | CSS Styleguide Generator focused on CSS Modular
kandi X-RAY | css-docs Summary
kandi X-RAY | css-docs Summary
CSS Styleguide Generator focused on CSS Modular Architectures
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of css-docs
css-docs Key Features
css-docs Examples and Code Snippets
Community Discussions
Trending Discussions on css-docs
QUESTION
I am trying to preserve all TailwindCSS colour classes (i.e bg-green, bg-red, text-green, text-red) when it is processed via PurgeCSS. These colour classes are set in the CMS rather than code so we cannot search the code for them as they don't (all) exist here.
Therefore I want to use the whitelisting feature of PurgeCSS to retain all classes that beging with 'bg-' or 'text-'. However, the pattern I have below doesn't seem to be doing the trick? Any ideas how to tweak it?
...ANSWER
Answered 2020-Apr-07 at 10:53The issue appears to be simply to use regexp, not a string.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install css-docs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page