mrsum / webpack-svgstore-plugin

Simple svg-sprite creating with webpack
https://www.npmjs.com/package/webpack-svgstore-plugin
200 stars 92 forks source link

Render wrong color + shape of SVG icons #124

Closed SLyHuy closed 6 years ago

SLyHuy commented 7 years ago

Render wrong color + shape of SVG icons Same issue here: https://github.com/kisenka/svg-sprite-loader/issues/74 But this one is wrong in shape too.

screen shot 2017-01-23 at 12 35 32

My node version: v6.9.4

mshustov commented 7 years ago

I could be wrong, but seems like result of svgo minification. probably, svgo processing should be optional

mrsum commented 7 years ago

@SLyHuy look up to

new SvgStore({
      // svgo options
      svgoOptions: {
        plugins: [
          { removeTitle: true }
        ]
      },
      prefix: 'icon'
})

doc available here https://github.com/svg/svgo