{"action":"created","issue":{"url":"https://api.github.com/repos/mrsum/webpack-svgstore-plugin/issues/153","repository_url":"https://api.github.com/repos/mrsum/webpack-svgstore-plugin","labels_url":"https://api.github.com/repos/mrsum/webpack-svgstore-plugin/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/mrsum/webpack-svgstore-plugin/issues/153/comments","events_url":"https://api.github.com/repos/mrsum/webpack-svgstore-plugin/issues/153/events","html_url":"https://github.com/mrsum/webpack-svgstore-plugin/issues/153","id":259758222,"number":153,"title":"understand how to use plugin","user":{"login":"rustam87","id":16744441,"avatar_url":"https://avatars2.githubusercontent.com/u/16744441?v=4","gravatar_id":"","url":"https://api.github.com/users/rustam87","html_url":"https://github.com/rustam87","followers_url":"https://api.github.com/users/rustam87/followers","following_url":"https://api.github.com/users/rustam87/following{/other_user}","gists_url":"https://api.github.com/users/rustam87/gists{/gist_id}","starred_url":"https://api.github.com/users/rustam87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rustam87/subscriptions","organizations_url":"https://api.github.com/users/rustam87/orgs","repos_url":"https://api.github.com/users/rustam87/repos","events_url":"https://api.github.com/users/rustam87/events{/privacy}","received_events_url":"https://api.github.com/users/rustam87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-22T09:37:02Z","updated_at":"2018-04-22T19:07:18Z","closed_at":null,"author_association":"NONE","body":"I am not understand how it works this plugin\r\nI add this to my webpack config\r\n\r\n```\r\n const SvgStore = require('webpack-svgstore-plugin');\r\n....\r\n\r\n plugins: [\r\n     new SvgStore(\r\n            path.resolve(__dirname, './mobile/web/img/svg-icons/*.svg'),\r\n            path.resolve(__dirname, './mobile/web/dist/img/'),\r\n            {\r\n                name: 'sprite.svg',\r\n                prefix: 'svg-icon-',\r\n                svgoOptions: {\r\n\r\n                }\r\n            }\r\n        )\r\n]\r\n```\r\n\r\n\r\nWhat is it? it is nessary or not? Where i write code below\r\n```\r\nvar __svg__           = { path: './assets/svg/**/*.svg', name: 'assets/svg/[hash].logos.svg' };\r\nrequire('webpack-svgstore-plugin/src/helpers/svgxhr')(__svg__);\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mrsum/webpack-svgstore-plugin/issues/comments/383404779","html_url":"https://github.com/mrsum/webpack-svgstore-plugin/issues/153#issuecomment-383404779","issue_url":"https://api.github.com/repos/mrsum/webpack-svgstore-plugin/issues/153","id":383404779,"user":{"login":"lgordey","id":5946242,"avatar_url":"https://avatars3.githubusercontent.com/u/5946242?v=4","gravatar_id":"","url":"https://api.github.com/users/lgordey","html_url":"https://github.com/lgordey","followers_url":"https://api.github.com/users/lgordey/followers","following_url":"https://api.github.com/users/lgordey/following{/other_user}","gists_url":"https://api.github.com/users/lgordey/gists{/gist_id}","starred_url":"https://api.github.com/users/lgordey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgordey/subscriptions","organizations_url":"https://api.github.com/users/lgordey/orgs","repos_url":"https://api.github.com/users/lgordey/repos","events_url":"https://api.github.com/users/lgordey/events{/privacy}","received_events_url":"https://api.github.com/users/lgordey/received_events","type":"User","site_admin":false},"created_at":"2018-04-22T19:07:18Z","updated_at":"2018-04-22T19:07:18Z","author_association":"COLLABORATOR","body":"@kazagkazag Thanks for response :)\r\n@rustam87 I dont think so :( But feel free to send a PR with fix =) "}}
{"actor":{"display_login":"lgordey"}}