Answer the question
In order to leave comments, you need to log in
How to fix Gulp compilation of inline elements from Pug(ex-JADE) to HTML?
Good day.
Can you please tell me how to make it so that when compiling Gulp from .pug files to .html, links and spans are wrapped on a new line?
This is how the .pug code looks like
This is how it compiles to .html
And I want the html to look like this:
Here is the gulp-task responsible for compiling pug files.
Answer the question
In order to leave comments, you need to log in
It seems to me that we need to look towards gulp plugins that format html after pug compilation. Something like gulp-html-beautify
Or use the indentation character ' | ', here is the documentation .
|
a(href='#')lorem
|
|
a(href='#')ipsum
|
|
a(href='#')dolor
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question