+++ /dev/null
-{
- "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": []
-}
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);
});
{
- "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": []
}