I have the code like this:
<div class="my-super-class {{#if something}}{{else}}hidden{{/if}}">
Notice the space after 'my-super-class'
Problem:
If to minify this code snippet the space will be removed and we'll get my-super-classhidden
class instead of my-super-class hidden
.
How to resolve this issue without npm installations?
I haven't found something valuable. The only way for now is to install this minifier and run it on node.js. It also can be well configured in many desired ways. It understands handlebars.js and minifies HTML better than other known minify services.