consolidate conf files
authoralexlamsl <alexlamsl@gmail.com>
Thu, 4 Feb 2016 19:56:09 +0000 (03:56 +0800)
committeralexlamsl <alexlamsl@gmail.com>
Thu, 4 Feb 2016 19:56:09 +0000 (03:56 +0800)
benchmark.conf [deleted file]
benchmark.js
sample-cli-config-file.conf

diff --git a/benchmark.conf b/benchmark.conf
deleted file mode 100644 (file)
index 9c21889..0000000
+++ /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": []
-}
index e81db10..6e035fd 100644 (file)
@@ -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);
       });
index 75ffdf1..9c21889 100644 (file)
@@ -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": []
 }