We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Source:
<script type="text/x-handlebars-template"> <div class="entry"> <h1>{{title}}</h1> </div> </script>
Minified:
<script type="text/x-handlebars-template"><div class="entry"><h1>{{title}}</h1></div></script>
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Instead of having a built-in template list, what about implementing the feature like this:
{ minifyHtmlTemplate: [ // [Tag Name, Attribute Name (Optional), Attribute Value (Optional)] ['script', 'type', 'text/x-handlebars-template'], // Matches script[type='text/x-handlebars-template'] ['template', id, 'my-template'] // Matches template[id='my-template'] ] }
or this:
{ minifyHtmlTemplate: [ { tag: 'script', attrs: { type: 'text/x-handlebars-template' } }, // Matches script[type='text/x-handlebars-template'] { tag: 'script', attrs: { id: 'my-template' } }, // Matches template#my-template }
Looks good to me!
Instead of having a built-in template list
I think it's still good if we provide some built-in template list with an option to replace it or provide additional rules.
No branches or pull requests
Source:
Minified:
The text was updated successfully, but these errors were encountered: