Ability to whitelist whole CSS files
See original GitHub issueIs your feature request related to a problem? Please describe. I’m importing an NPM module that includes a CSS file. A lot of the classes in that file are caught by PurgeCSS.
Describe the solution you’d like A configuration option to whitelist entire files by path.
Describe alternatives you’ve considered
- Fishing out classes one by one.
- Adding all JS files from the NPM module to
content
- didn’t work.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Ability to whitelist CDN's? - Salesforce Developer Community
I have a javascript library that I'm trying to implement into a lightning App but the library was built in a modular fashion...
Read more >PurgeCSS and Markdown output, how to whitelist element ...
To fix this, you can pass a list of whitelisted elements through to PurgeCSS from your Tailwind config file. First, make sure you...
Read more >Preventing XSS Attacks through CSS Whitelisting - MediaWiki
1) PHP CSS. Parser A PHP parser is a PHP program written for CSS files. The parser is used for extracting a CSS...
Read more >Whitelist URLs of CSS files - WordPress.org
Hello,. I have installed a cookie consens plugin but Wordfence blocks all CSS and JS files of this plugin so I can't edit...
Read more >How to Remove Unused CSS for Leaner CSS Files - KeyCDN
If you did everything correctly, you'll have a clean and minified CSS file waiting for you in the specified folder. Some developers have...
Read more >
Top Related Medium Post
No results found
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
I was also looking for this! In my case the issue was that I want to exclude all Datatables (+ plugins) styles from the purging, as it would be impossible to manually find and safelist them one by one.
I also tried wrapping the imports like:
But that also doesn’t work 😢 Anybody has suggestions?
I saw no negative feedback, so … bump 🤷