asyncLiz / minify-html-literals

Minify HTML template literal strings
MIT License
68 stars 14 forks source link

Allow selecting based on comment. #55

Open nstringham opened 10 months ago

nstringham commented 10 months ago

I would like to be able to select which templates to minify based on comments. For example I would like to minify code like this:

element.innerHTML = /*html*/ `
    <div>test</div>
`;

This is a convention used by syntax highlighters such as ES6 String HTML.