S
S
Svyatoslav Ogievich2020-07-20 21:34:44
JavaScript
Svyatoslav Ogievich, 2020-07-20 21:34:44

Guys, galp minifies html, what should I do?

function html() {
return src(path.src.html)
.pipe(pugLinter())
.pipe(pug({
doctype: 'html',
pretty : 1,
}))
.pipe(webpHtml())
.pipe( dest(path.build.html))
.pipe(browsersync.stream())
}

here is my task, for some reason it compresses during compilation, and Pretty doesn't help, + the same problem with the svg sprite, it compresses, I can't see it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jamster, 2020-07-20
@jamster

Try changing like this.
pretty : true instead of pretty : 1

A
Alex Glebov, 2020-07-21
@SkiperX

pretty in pug deprecated
https://pugjs.org/api/reference.html
a separate package will help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question