Skip to content Skip to sidebar Skip to footer

Pug (Jade) Extra Space Added Between Formatted Tags On Gulp Build

I use Gulp, webpack and pug(jade). The issue is with the dist-code that has an extra space because of formatting on build. pseudo-code: label each item in items span if

Solution 1:

I'm afraid there is no elegant way around this one.

If you want a quick solution, I recommend setting the font size of the parent element to 0.

If you want to solve it from the Pug perspective, maybe try disabling prettified HTML output in Pug ({ pretty: false })? Not sure whether it will fix it in this case, but it might (the resulting HTML, however, is not pretty anymore).


Post a Comment for "Pug (Jade) Extra Space Added Between Formatted Tags On Gulp Build"