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:
@@ -12,7 +12,11 @@ module.exports = {
|
|||||||
gifsicle: { optimizationLevel: 3 },
|
gifsicle: { optimizationLevel: 3 },
|
||||||
pngquant: { quality: '65-90', speed: 4 },
|
pngquant: { quality: '65-90', speed: 4 },
|
||||||
svgo: {
|
svgo: {
|
||||||
plugins: [{ removeUnknownsAndDefaults: false }, { cleanupIDs: false }],
|
plugins: [
|
||||||
|
{ removeUnknownsAndDefaults: false },
|
||||||
|
{ cleanupIDs: false },
|
||||||
|
{ removeViewBox: false }
|
||||||
|
],
|
||||||
},
|
},
|
||||||
plugins: [imageminMozjpeg({ quality: 75 })],
|
plugins: [imageminMozjpeg({ quality: 75 })],
|
||||||
disable: (config.enabled.watcher),
|
disable: (config.enabled.watcher),
|
||||||
|
|||||||
Reference in New Issue
Block a user