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.

Allow custom tag processors/minifiers

See original GitHub issue

A 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:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alexlamslcommented, Apr 25, 2016

#378 not yet possible, everything else works.

Sorry for misreading this issue then - reopening…

0reactions
fregantecommented, Apr 25, 2016

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?

Read more comments on GitHub >

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

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