Skip to content

Commit

Permalink
pug Deprecated pretty (#2582)
Browse files Browse the repository at this point in the history
see https://pugjs.org/api/reference.html#options

pretty: boolean | string

[Deprecated.] Adds whitespace to the resulting HTML to make it easier for a human to read using '  ' as indentation. If a string is specified, that will be used as indentation instead (e.g. '\t'). We strongly recommend against using this option. Too often, it creates subtle bugs in your templates because of the way it alters the interpretation and rendering of whitespace, and so this feature is going to be removed. Defaults to false.
  • Loading branch information
miewx authored and devongovett committed Jan 30, 2019
1 parent 9abe11e commit 0ada4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/parcel-bundler/src/assets/PugAsset.js
Expand Up @@ -18,7 +18,7 @@ class PugAsset extends Asset {
compileDebug: false,
filename: this.name,
basedir: path.dirname(this.name),
pretty: !this.options.minify,
pretty: config.pretty || false,
templateName: path.basename(this.basename, path.extname(this.basename)),
filters: config.filters,
filterOptions: config.filterOptions,
Expand Down

0 comments on commit 0ada4d6

Please sign in to comment.