Permalink
Browse files

Always beautify the output code so newlines are preserved and can be …

…reviewed in logs.
  • Loading branch information...
1 parent 8cf82e4 commit 1f0d6a6956852d747d56e6b5229b0c1c4e2e7102 @cpojer committed Nov 20, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/ast-collector.js
View
@@ -95,7 +95,8 @@ util.inherits(AstCollector, SuperClass);
}
return processor.gen_code(ast, {
inline_script: this.config.inlineSafe,
- beautify: !this.config.minify
+ beautify: true,
+ indent_level: (this.config.minify ? 0 : 2)
});
}
@@ -217,4 +218,4 @@ function AstBuffer() {
var body = this.body;
body.push.apply(body, toAstBody(items));
}
-})(AstBuffer.prototype);
+})(AstBuffer.prototype);

0 comments on commit 1f0d6a6

Please sign in to comment.