mrsum / webpack-svgstore-plugin

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

Fix issue with defs id duplications #121

Closed matpaul closed 7 years ago

matpaul commented 7 years ago

There is an issue with id defs duplication, for example we have svg with defs like:

<defs>
    <linearGradient x1="30%" y1="-6%" x2="55%" y2="92%" id="linearGradient-1">
            <stop stop-color="#006884" offset="0%"></stop>
            <stop stop-color="#8AD1D0" offset="100%"></stop>
    </linearGradient>
</defs>

Аfter we create svg sprite in result it create two linearGradients with equal id