From: alexlamsl Date: Thu, 4 Feb 2016 19:56:09 +0000 (+0800) Subject: consolidate conf files X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0289c0c3e3cf574c862b4658bd373ff75c6ee85d;p=html-minifier.git consolidate conf files --- diff --git a/benchmark.conf b/benchmark.conf deleted file mode 100644 index 9c21889..0000000 --- a/benchmark.conf +++ /dev/null @@ -1,24 +0,0 @@ -{ - "removeComments": true, - "removeCommentsFromCDATA": true, - "removeCDATASectionsFromCDATA": true, - "collapseWhitespace": true, - "conservativeCollapse": false, - "collapseBooleanAttributes": true, - "removeTagWhitespace": true, - "removeAttributeQuotes": true, - "removeRedundantAttributes": true, - "useShortDoctype": true, - "removeEmptyAttributes": true, - "removeScriptTypeAttributes": true, - "removeStyleLinkTypeAttributes": true, - "removeOptionalTags": true, - "removeEmptyElements": true, - "lint": false, - "keepClosingSlash": false, - "caseSensitive": false, - "minifyJS": true, - "minifyCSS": true, - "ignoreCustomComments": [], - "processScripts": [] -} diff --git a/benchmark.js b/benchmark.js index e81db10..6e035fd 100644 --- a/benchmark.js +++ b/benchmark.js @@ -210,7 +210,7 @@ run(fileNames.map(function (fileName) { function testHTMLMinifier(done) { var info = infos.minifier; info.startTime = Date.now(); - var args = [filePath, '-c', 'benchmark.conf', '-o', info.filePath]; + var args = [filePath, '-c', 'sample-cli-config-file.conf', '-o', info.filePath]; fork('./cli', args).on('exit', function () { readSizes(info, done); }); diff --git a/sample-cli-config-file.conf b/sample-cli-config-file.conf index 75ffdf1..9c21889 100644 --- a/sample-cli-config-file.conf +++ b/sample-cli-config-file.conf @@ -1,21 +1,24 @@ { - "removeComments": false, - "removeCommentsFromCDATA": false, - "removeCDATASectionsFromCDATA": false, + "removeComments": true, + "removeCommentsFromCDATA": true, + "removeCDATASectionsFromCDATA": true, "collapseWhitespace": true, "conservativeCollapse": false, - "collapseBooleanAttributes": false, - "removeAttributeQuotes": false, - "removeRedundantAttributes": false, - "useShortDoctype": false, - "removeEmptyAttributes": false, - "removeOptionalTags": false, - "removeEmptyElements": false, + "collapseBooleanAttributes": true, + "removeTagWhitespace": true, + "removeAttributeQuotes": true, + "removeRedundantAttributes": true, + "useShortDoctype": true, + "removeEmptyAttributes": true, + "removeScriptTypeAttributes": true, + "removeStyleLinkTypeAttributes": true, + "removeOptionalTags": true, + "removeEmptyElements": true, "lint": false, "keepClosingSlash": false, "caseSensitive": false, - "minifyJS": false, - "minifyCSS": false, + "minifyJS": true, + "minifyCSS": true, "ignoreCustomComments": [], "processScripts": [] }