Closed roadhump closed 10 years ago
+1
+1
+1
on svg-sprite-data -> lib -> svg-obj.js
this.svg.find('//*[@id]').forEach(function(elem) {
var id = elem.attr('id').value(),
substId = ns + id;
subst['#' + id] = substId;
//elem.attr('id', substId + "-hey-yo");
elem.attr('id', substId );
});
I made this change and it is working for me.
@leandropetreca - thanks, you tracked down something that should've never been published. it's fixed now in version 1.0.3
of this plugin.
npm install gulp-svg-sprites@latest --save-dev
I can't say is anything wrong with
svg-sprite-data
https://github.com/shakyShane/svg-sprite-data , so I post it hereBefore
After
ID of
<linearGradient>
isaaa-hey-yo
and<path>
's attribute isfill="url(#aaa)"
, but they must be the same.