From 1bd49dce2456232e80de3395866e184fbf387821 Mon Sep 17 00:00:00 2001 From: "Juan B. Rodriguez" Date: Tue, 12 Dec 2017 14:59:52 -0500 Subject: [PATCH] Adjust default .hugulprc Ref #22 --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 26347a7..21887a7 100755 --- a/index.js +++ b/index.js @@ -20,7 +20,7 @@ function init() { } const config = { - version: 1, + version: 2, pipeline: ['images', 'styles', 'scripts', 'fingerprint', 'html'], path: { styles: 'styles', @@ -44,6 +44,12 @@ function init() { htmlmin: { collapsedWhitespace: true, removeEmptyElements: true + }, + gifsicle: { interlaced: true }, + jpegtran: { progressive: true }, + optipng: { optimizationLevel: 5 }, + svgo: { + plugins: [{ removeViewBox: true }, { cleanupIDs: false }] } }