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.

Ability to whitelist whole CSS files

See original GitHub issue

Is 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:open
  • Created a year ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
aleesaancommented, Jun 10, 2022

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:

/* purgecss start ignore */
@import "~datatables.net/...";
/* purgecss end ignore */ 

But that also doesn’t work 😢 Anybody has suggestions?

0reactions
dmt0commented, Dec 9, 2022

I saw no negative feedback, so … bump 🤷

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

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