{"action":"created","issue":{"url":"https://api.github.com/repos/w0rm/gulp-svgstore/issues/33","labels_url":"https://api.github.com/repos/w0rm/gulp-svgstore/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/w0rm/gulp-svgstore/issues/33/comments","events_url":"https://api.github.com/repos/w0rm/gulp-svgstore/issues/33/events","html_url":"https://github.com/w0rm/gulp-svgstore/issues/33","id":59738894,"number":33,"title":"Multiple of the same ids in a differents files","user":{"login":"pastjean","id":140675,"avatar_url":"https://avatars.githubusercontent.com/u/140675?v=3","gravatar_id":"","url":"https://api.github.com/users/pastjean","html_url":"https://github.com/pastjean","followers_url":"https://api.github.com/users/pastjean/followers","following_url":"https://api.github.com/users/pastjean/following{/other_user}","gists_url":"https://api.github.com/users/pastjean/gists{/gist_id}","starred_url":"https://api.github.com/users/pastjean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pastjean/subscriptions","organizations_url":"https://api.github.com/users/pastjean/orgs","repos_url":"https://api.github.com/users/pastjean/repos","events_url":"https://api.github.com/users/pastjean/events{/privacy}","received_events_url":"https://api.github.com/users/pastjean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2015-03-04T01:57:03Z","updated_at":"2015-07-15T15:12:00Z","closed_at":null,"body":"What if there are multiple of the same IDs in a different file, there would be duplicate ids\r\n"},"comment":{"url":"https://api.github.com/repos/w0rm/gulp-svgstore/issues/comments/121646987","html_url":"https://github.com/w0rm/gulp-svgstore/issues/33#issuecomment-121646987","issue_url":"https://api.github.com/repos/w0rm/gulp-svgstore/issues/33","id":121646987,"user":{"login":"w0rm","id":43472,"avatar_url":"https://avatars.githubusercontent.com/u/43472?v=3","gravatar_id":"","url":"https://api.github.com/users/w0rm","html_url":"https://github.com/w0rm","followers_url":"https://api.github.com/users/w0rm/followers","following_url":"https://api.github.com/users/w0rm/following{/other_user}","gists_url":"https://api.github.com/users/w0rm/gists{/gist_id}","starred_url":"https://api.github.com/users/w0rm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w0rm/subscriptions","organizations_url":"https://api.github.com/users/w0rm/orgs","repos_url":"https://api.github.com/users/w0rm/repos","events_url":"https://api.github.com/users/w0rm/events{/privacy}","received_events_url":"https://api.github.com/users/w0rm/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T15:12:00Z","updated_at":"2015-07-15T15:12:00Z","body":"@Jakobud yeah svgo is really powerful and minifying step is needed anyway in svg pipeline. I wonder if this should be in its own gulp plugin, because it needs to configure svgo on a per-file basis.\r\nCan be done in a pull request to @ben-eb [gulp-svgmin](https://github.com/ben-eb/gulp-svgmin), that allows passing a function that receives file and returns svgo options, so something like this would be possible:\r\n\r\n```javascript\r\ngulp.src('svg/*.svg')\r\n.pipe(svgmin(function (file) {\r\n    var prefix = path.basename(file.relative, path.extname(file.relative));\r\n    return {\r\n        plugins: [{\r\n            cleanupIDs: {\r\n                prefix: prefix + '-',\r\n                minify: true\r\n            }\r\n        }]\r\n    }\r\n}))\r\n.pipe(svgstore())\r\n.pipe(gulp.dest('.'))\r\n```\r\n"}}