{"action":"created","issue":{"url":"https://api.github.com/repos/hollandben/grunt-cache-bust/issues/112","labels_url":"https://api.github.com/repos/hollandben/grunt-cache-bust/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/hollandben/grunt-cache-bust/issues/112/comments","events_url":"https://api.github.com/repos/hollandben/grunt-cache-bust/issues/112/events","html_url":"https://github.com/hollandben/grunt-cache-bust/issues/112","id":58087814,"number":112,"title":"Issue with some fonts and images in css","user":{"login":"ArmorDarks","id":4460311,"avatar_url":"https://avatars.githubusercontent.com/u/4460311?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmorDarks","html_url":"https://github.com/ArmorDarks","followers_url":"https://api.github.com/users/ArmorDarks/followers","following_url":"https://api.github.com/users/ArmorDarks/following{/other_user}","gists_url":"https://api.github.com/users/ArmorDarks/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmorDarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmorDarks/subscriptions","organizations_url":"https://api.github.com/users/ArmorDarks/orgs","repos_url":"https://api.github.com/users/ArmorDarks/repos","events_url":"https://api.github.com/users/ArmorDarks/events{/privacy}","received_events_url":"https://api.github.com/users/ArmorDarks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-18T16:08:17Z","updated_at":"2015-02-19T00:23:57Z","closed_at":null,"body":"Hi\r\n\r\nFirst of all, thanks for the great plugin!\r\n\r\nI'm not sure, but it seems to be some issue with parsing of font-face declaration and images\r\n\r\nFor instance, we have following task:\r\n\r\n``` coffee\r\nmodule.exports = ->\r\n  @config 'cacheBust',\r\n    build:\r\n      options:\r\n        algorithm: 'md5'\r\n        deleteOriginals: true\r\n        baseDir: '<%= path.build.root %>'\r\n      files: [\r\n        src: [\r\n          '<%= path.build.root %>/{,**/}*.html',\r\n          '<%= path.build.root %>/{,**/}*.css'\r\n        ]\r\n      ]\r\n```\r\n\r\nfollowing css:\r\n\r\n```\r\n@font-face {\r\n  font-family:icons;\r\n  src:url(/assets/fonts/icons.eot);\r\n  src:url(/assets/fonts/icons.eot#iefix) format(embedded-opentype),\r\n      url(/assets/fonts/icons.woff) format(woff),\r\n      url(/assets/fonts/icons.ttf) format(truetype);\r\n  font-weight:400;\r\n  font-style:normal;\r\n}\r\n\r\n.sprite {\r\n  background:url(/assets/sprites/sprite.png) no-repeat;\r\n}\r\n```\r\n\r\nThis will produce:\r\n\r\nFonts file-names like those:\r\n\r\n```\r\nicons.f1d05013cb3afab0.eot\r\nicons.ttf\r\nicons.woff\r\n```\r\n\r\nSpirte file-name like that:\r\n\r\n```\r\nsprite.dfa1acde53d18b33.png\r\n```\r\n\r\nAnd following css:\r\n\r\n``` css\r\n@font-face {\r\n  font-family:icons;\r\n  src:url(/assets/fonts/icons.f1d05013cb3afab0.eot);\r\n  src:url(/assets/fonts/icons.f1d05013cb3afab0.eot#iefix) format(embedded-opentype),\r\n      url(/assets/fonts/icons.woff) format(woff),\r\n      url(/assets/fonts/icons.ttf) format(truetype);\r\n  font-weight:400;\r\n  font-style:normal;\r\n}\r\n\r\n.sprite {\r\n  background:url(/assets/sprites/sprite.png) no-repeat;\r\n}\r\n```\r\n\r\nNotice that `ttf` and `woff` didn't receive proper names. It seems that it somehow related to the fact that they are defined in `@font-face` declaration by using comma.\r\n\r\nAlso you can notice that sprite url in CSS declaration wasn't updated for some reason.\r\n\r\nIf we'll call css `src` before html, like that:\r\n\r\n``` coffee\r\nmodule.exports = ->\r\n  @config 'cacheBust',\r\n    build:\r\n      options:\r\n        # @todo Enable length option when PR with fix will be merged\r\n        # length: 6\r\n        algorithm: 'md5'\r\n        deleteOriginals: true\r\n        baseDir: '<%= path.build.root %>'\r\n      files: [\r\n        src: [\r\n          '<%= path.build.root %>/{,**/}*.css',\r\n          '<%= path.build.root %>/{,**/}*.html'\r\n        ]\r\n      ]\r\n```\r\n\r\nit will fix issue with not updated url in `.sprite` selector for some reason, but it's seems to be like wrong behavior — shouldn't result be same, regardless of the order?\r\n\r\nIt, of course, also doesn't fix issue with `@font-face` declaration.\r\n\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/hollandben/grunt-cache-bust/issues/comments/74977959","html_url":"https://github.com/hollandben/grunt-cache-bust/issues/112#issuecomment-74977959","issue_url":"https://api.github.com/repos/hollandben/grunt-cache-bust/issues/112","id":74977959,"user":{"login":"hollandben","id":1148714,"avatar_url":"https://avatars.githubusercontent.com/u/1148714?v=3","gravatar_id":"","url":"https://api.github.com/users/hollandben","html_url":"https://github.com/hollandben","followers_url":"https://api.github.com/users/hollandben/followers","following_url":"https://api.github.com/users/hollandben/following{/other_user}","gists_url":"https://api.github.com/users/hollandben/gists{/gist_id}","starred_url":"https://api.github.com/users/hollandben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hollandben/subscriptions","organizations_url":"https://api.github.com/users/hollandben/orgs","repos_url":"https://api.github.com/users/hollandben/repos","events_url":"https://api.github.com/users/hollandben/events{/privacy}","received_events_url":"https://api.github.com/users/hollandben/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T00:23:57Z","updated_at":"2015-02-19T00:23:57Z","body":"Ahh ok, I understand. Will write a test for this and get your fixed implemented in here. Thanks"}}