{"action":"closed","issue":{"url":"https://api.github.com/repos/2createStudio/postcss-sprites/issues/75","repository_url":"https://api.github.com/repos/2createStudio/postcss-sprites","labels_url":"https://api.github.com/repos/2createStudio/postcss-sprites/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/2createStudio/postcss-sprites/issues/75/comments","events_url":"https://api.github.com/repos/2createStudio/postcss-sprites/issues/75/events","html_url":"https://github.com/2createStudio/postcss-sprites/issues/75","id":193752836,"number":75,"title":"Option to disable image sprite overwrite","user":{"login":"niksy","id":389286,"avatar_url":"https://avatars.githubusercontent.com/u/389286?v=3","gravatar_id":"","url":"https://api.github.com/users/niksy","html_url":"https://github.com/niksy","followers_url":"https://api.github.com/users/niksy/followers","following_url":"https://api.github.com/users/niksy/following{/other_user}","gists_url":"https://api.github.com/users/niksy/gists{/gist_id}","starred_url":"https://api.github.com/users/niksy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niksy/subscriptions","organizations_url":"https://api.github.com/users/niksy/orgs","repos_url":"https://api.github.com/users/niksy/repos","events_url":"https://api.github.com/users/niksy/events{/privacy}","received_events_url":"https://api.github.com/users/niksy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-06T11:50:30Z","updated_at":"2016-12-07T07:59:45Z","closed_at":"2016-12-07T07:59:45Z","body":"I’m creating sprite based on hashed image buffer and if I have same output filename (two input CSS files have same final sprite) it gets written twice which creates problems if you want that sprite to be inlined since you would get into racing conditions when writing file to disk and reading it’s contents for inlining.\r\n\r\nOne option is to create final filename with groups and that works as it should, but maybe there could be option to skip writing same file to the disk if it already exists? Adding check for existence on https://github.com/2createStudio/postcss-sprites/blob/master/src/core.js#L350 could work.\r\n\r\nWhat do you think? Does this make sense?"}}
{"actor":{"display_login":"vvasilev-"}}