Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Regression] --no-minify not working on pug since 1.12.x #2890

Closed
DFOXpro opened this issue Apr 4, 2019 · 2 comments
Closed

[Regression] --no-minify not working on pug since 1.12.x #2890

DFOXpro opened this issue Apr 4, 2019 · 2 comments

Comments

@DFOXpro
Copy link

DFOXpro commented Apr 4, 2019

馃悰 bug report

馃帥 Configuration (.babelrc, package.json, cli command)

rm ./www -Rv; parcel build --out-dir www --no-minify src/index.pug

馃 Expected Behavior

Rendered html pages should be pretifier / indented

馃槸 Current Behavior

Rendered html pages are minimized

馃拋 Possible Solution

Maybe related to #2887

馃敠 Context

With this regression there is no way to build a dev / debug compiled version of our projects.
note included code is not minimized.

馃捇 Code Sample

Input

html
	head
		title
	body
		div#app
		script
			include ./index.js

Output

<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>

馃實 Your Environment

Software Version(s)
Parcel 1.12.0 ~ .3
Node v10.15.3
npm/Yarn 6.9.0
Operating System Xbuntu 18.04.2
@ciaranashton
Copy link

Not sure if this is bug. I found this #2582 PR which removes this ability due to Pug deprecating the pretty option. Pug API

@mischnic
Copy link
Member

mischnic commented Apr 8, 2019

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
};

@mischnic mischnic closed this as completed Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants