Tweaked SVGO settings

Disable removal of the SVG viewBox by default to improve compatibility. See this Discourse thread: https://discourse.roots.io/t/svg-size-change-upon-yarn-build-production/12320
This commit is contained in:
Henning Orth
2018-05-28 16:44:12 +02:00
committed by GitHub
parent ab3763856e
commit d1c8a2eee7

View File

@@ -12,7 +12,11 @@ module.exports = {
gifsicle: { optimizationLevel: 3 },
pngquant: { quality: '65-90', speed: 4 },
svgo: {
plugins: [{ removeUnknownsAndDefaults: false }, { cleanupIDs: false }],
plugins: [
{ removeUnknownsAndDefaults: false },
{ cleanupIDs: false },
{ removeViewBox: false }
],
},
plugins: [imageminMozjpeg({ quality: 75 })],
disable: (config.enabled.watcher),