From: Alex Lam S.L Date: Tue, 9 May 2017 08:08:04 +0000 (+0800) Subject: mention `minify().error` X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=bc3fa78e8cedfda4cc0eb7aa7bc7b00c5e860650;p=UglifyJS.git mention `minify().error` --- diff --git a/README.md b/README.md index a665c06d..52c44ccd 100644 --- a/README.md +++ b/README.md @@ -596,7 +596,8 @@ performs all the steps in a configurable manner. Example: ```javascript var result = UglifyJS.minify("var b = function() {};"); -console.log(result.code); // minified output +console.log(result.code); // minified output +console.log(result.error); // runtime error ``` You can also compress multiple files: