-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JIT] Add support for "raw" purge content #4272
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4272 +/- ##
==========================================
+ Coverage 71.10% 71.15% +0.04%
==========================================
Files 218 218
Lines 4703 4711 +8
Branches 770 773 +3
==========================================
+ Hits 3344 3352 +8
Misses 1273 1273
Partials 86 86
Continue to review full report at Codecov.
|
🤘🏻 |
* add support for "raw" purge content * add support for raw content extensions
@bradlc Would you mind double-checking if the custom extractor (or I've pulled master (canary) and working with this functionality today, and I'm able to get |
Apologies, ignore me, I guess it's a known restriction that custom extractors won't with JIT. |
@adamwathan this seems to have been reverted in the latest release, any reason why? Was hoping to use it. |
Not reverted just not released yet. You can use our canary build to try it right away if you like!
|
Ah, my bad, I had assumed it would be in today’s release. |
Fixes #4094
This PR adds support for specifying raw content as part of the
purge
config, mimicking the PurgeCSS API:You can also specify an extension which is used to select the appropriate extractor: