rm ./www -Rv; parcel build --out-dir www --no-minify src/index.pug
Rendered html pages should be pretifier / indented
Rendered html pages are minimized
Maybe related to #2887
With this regression there is no way to build a dev / debug compiled version of our projects.
note included code is not minimized.
html
head
title
body
div#app
script
include ./index.js
<html><head><title></title></head><body><div id="app"></div><script>var app = new Vue({
el: '#app',
data: {
name: 'mundo',
link: {
url: 'http://asd.com',
name: 'asd.com',
show: true
}
}
});</script></body></html>
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.12.0 ~ .3
| Node | v10.15.3
| npm/Yarn | 6.9.0
| Operating System | Xbuntu 18.04.2
Not sure if this is bug. I found this #2582 PR which removes this ability due to Pug deprecating the pretty option. Pug API
Good catch.
@DFOXpro If you really want pretty output, you should be able to set the pretty option in the pug option file:
// pug.config.js
module.exports = {
pretty: true
};
Most helpful comment
Good catch.
@DFOXpro If you really want pretty output, you should be able to set the
prettyoption in the pug option file: