From 0289c0c3e3cf574c862b4658bd373ff75c6ee85d Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Fri, 5 Feb 2016 03:56:09 +0800 Subject: [PATCH] consolidate conf files --- benchmark.conf | 24 ------------------------ benchmark.js | 2 +- sample-cli-config-file.conf | 27 +++++++++++++++------------ 3 files changed, 16 insertions(+), 37 deletions(-) delete mode 100644 benchmark.conf 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": [] } -- 2.34.1