html-minify
html-minify copied to clipboard
Collapses white spaces
html-minify collapses white spaces in many places, I don't see the patern, but the regexp that is behind has to be faulty. To recreate the bug I would suggest to copy the html code from some big web pages, minify it and then compare the resulting minified HTML interpreted by a browser with the original one.
do you have some example? i cant see the problem.
The project where the problem happens uses a lot of nesting, it also includes JavaScript inside HTML and uses tedious/JShrink to minify this JavaScript.
Unfortunately I was unable to reproduce this issue on a clean Laravel project by copying the HTML code and minifying it.
I have the same issue.
I have a few examples in which the space is removed when minified:
<h1>
{{ config('app.name') }} {{ $name }}
</h1>
<div>
<strong>Key:</strong> Value
</div>
I have this happen too, as a fix for now I use to deny this collapse.