diff --git a/lib/filter.js b/lib/filter.js index 0b86abc..901e8c3 100644 --- a/lib/filter.js +++ b/lib/filter.js @@ -78,10 +78,11 @@ function logic_js(str, data) { } } - //uglifyjs doesn't like 'enable' option + //uglifyjs doesn't like irrelevant options delete options.enable + delete options.logger + delete options.exclude var result = UglifyJS.minify(str, options); - console.log(result.error); var saved = ((str.length - result.code.length) / str.length * 100).toFixed(2); if (options.logger) { var log = hexo.log || console.log;