Closed algebris closed 8 years ago
I just found it goes like that because of no new line breaks for every html tag (it was just joined together) like
<div>..</div><div>...</div>
It would be great to distinguish not only by new lines.
For an instance if i use this code
</div><!-- build:js js/lib.js -->
it will never find lib.js section
So it worked before with no new lines in the html?
nope, it seems main logic of useref works "by lines" but not "by chars" when it looks for necessary entities like build section etc.
Yes, this is correct.
thank you for quick answers! is it possible to improve it?
Not without rewriting it, as far as I can tell, and I am not inclined to do that right now.
Related #177.
Hi I'm trying to process my html with useref 3.0.5 and output looks like
only 4 lines instead of whole html!
I use this setup
In previous versions (1.0.*) it works the same manner. I found that after
assets.restore()
html file is ok, but afteruseref()
it cleaning up my html again ... I can't understand where i'm wrong.Thanks