From fa1b1b685eb222cfdd6464d00bc3345af36dfc64 Mon Sep 17 00:00:00 2001 From: rozbo <75200306@qq.com> Date: Wed, 22 Jun 2016 19:35:26 +0800 Subject: [PATCH] release 1.0.4 --- lib/filter.js | 9 +++------ package.json | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/filter.js b/lib/filter.js index 27fb6e9..8aa00c4 100644 --- a/lib/filter.js +++ b/lib/filter.js @@ -28,10 +28,7 @@ function logic_html(str, data) { var result = Htmlminifier(str, options); var saved = ((str.length - result.length) / str.length * 100).toFixed(2); log.log('neat the html: %s [ %s saved]', path, saved + '%'); - var now = new Date(); - // var prefix='"; + var prefix = '"; var end = ''; result = prefix + result + end; return result; @@ -58,7 +55,7 @@ function logic_css(str, data) { new CleanCSS(options).minify(str, function(err, result) { if (err) return reject(err); var saved = ((str.length - result.styles.length) / str.length * 100).toFixed(2); - var prefix = '/* build time:' + new Date().toLocaleString() + "*/\n"; + var prefix = '/* build time:' + Date().toLocaleString() + "*/\n"; var end = '\n/* rebuild by neat */'; var css_result = prefix + result.styles + end; resolve(css_result); @@ -87,7 +84,7 @@ function logic_js(str, data) { var result = UglifyJS.minify(str, options); var saved = ((str.length - result.code.length) / str.length * 100).toFixed(2); log.log('neat the js: %s [ %s saved]', path, saved + '%'); - var prefix = '// build time:' + new Date().toLocaleString() + "\n"; + var prefix = '// build time:' + Date().toLocaleString() + "\n"; var end = '\n//rebuild by neat '; var js_result = prefix + result.code + end; return js_result; diff --git a/package.json b/package.json index dfbd348..e6002ad 100644 --- a/package.json +++ b/package.json @@ -33,5 +33,5 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "version": "1.0.3" + "version": "1.0.4" }