svg-sprite / svg-sprite

SVG sprites & stacks galore — A low-level Node.js module that takes a bunch of SVG files, optimizes them and bakes them into SVG sprites of several types along with suitable stylesheet resources (e.g. CSS, Sass, LESS, Stylus, etc.)

Home Page:https://github.com/svg-sprite/svg-sprite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVGO configuration

alex-belost opened this issue · comments

SVGO configuration overrides didn't work and it has some problems with SVG optimization. SVGO with default configuration compresses files bit a bit more

image

Have the same issue with the following configuration:

transform: { svgo: { multipass: true, plugins: [ { name: 'preset-default', params: { overrides: { removeTitle: false, removeDesc: false } } }, ] } },

@alex-belost @taylinr which version do you use?
current stable version has svgo v1.3.x, which has different API. If you want to use newer version of svgo - please use current beta version or just wait the v2.0 release #698

I updated the tests, all the plugins configuration goes straight to the SVGO without a modifications. You should either use beta version of svg-sprite, or use the svgo v1 configuration.