Allow custom tag processors/minifiers
See original GitHub issueA bit of a stretch, but maybe it would make html-minifier easier to extend and less reliant on the maintainers, should other “plugins” come along (base64 minifier? jade templates? frameworktron-3000 awesomizer?)
This would allow me to just pop in a configuration like the following to add support for #381:
{
customMinifiers: [
{
regex: /<svg>.*<\/svg>/, // lazy regex
parser: function (content) {
return svgo.optimize(content);
}
}
]
}
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Custom tags - Tag Manager Help - Google Support
The Custom HTML Tag type allows you to deploy a tag that isn't yet supported via Tag Manager. This code will be provided...
Read more >Enable Tags - Salesforce Help
Tags are words or short phrases that users associate to records to describe and organize data in a personalized way. Required Editions and...
Read more >Creating custom tags - Adobe Support
Custom tags let you extend CFML by adding your own tags to the ones supplied with ColdFusion. After you define a custom tag,...
Read more >Inappropriate Use of Custom Tags for Operating Lease Right ...
Staff recently assessed companies' use of custom tags to tag the amortization of operating lease right-of-use assets in their Forms 10-K and 10- ......
Read more >Adding Custom Tags to the System - Micro Focus
To add a custom tag: On the Fortify header, click ADMINISTRATION. In the left panel of the ADMINISTRATION view, select Templates, and then...
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 FreeTop 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
Top GitHub Comments
#378 not yet possible, everything else works.
Sorry for misreading this issue then - reopening…
But that’s not what I meant by custom with this issue, I meant custom tags, not custom processors 😕
Is my example in the second comment feasible?