{"action":"created","issue":{"url":"https://api.github.com/repos/ben-eb/postcss-discard-font-face/issues/3","labels_url":"https://api.github.com/repos/ben-eb/postcss-discard-font-face/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/ben-eb/postcss-discard-font-face/issues/3/comments","events_url":"https://api.github.com/repos/ben-eb/postcss-discard-font-face/issues/3/events","html_url":"https://github.com/ben-eb/postcss-discard-font-face/issues/3","id":88674954,"number":3,"title":"What if there's only a type we don't want?","user":{"login":"bfred-it","id":1402241,"avatar_url":"https://avatars.githubusercontent.com/u/1402241?v=3","gravatar_id":"","url":"https://api.github.com/users/bfred-it","html_url":"https://github.com/bfred-it","followers_url":"https://api.github.com/users/bfred-it/followers","following_url":"https://api.github.com/users/bfred-it/following{/other_user}","gists_url":"https://api.github.com/users/bfred-it/gists{/gist_id}","starred_url":"https://api.github.com/users/bfred-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfred-it/subscriptions","organizations_url":"https://api.github.com/users/bfred-it/orgs","repos_url":"https://api.github.com/users/bfred-it/repos","events_url":"https://api.github.com/users/bfred-it/events{/privacy}","received_events_url":"https://api.github.com/users/bfred-it/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-16T09:35:43Z","updated_at":"2015-06-16T11:01:07Z","closed_at":null,"body":"I tried running this module as `discardFonts(['woff'])`, which should only leave the `woff` file but… what if the CSS only has an `otf` font? Shouldn't `dff` leave it as it is a output a warning?\r\n\r\nAt the moment the entire `src` property is removed and the `font-face` stops working altogether."},"comment":{"url":"https://api.github.com/repos/ben-eb/postcss-discard-font-face/issues/comments/112385556","html_url":"https://github.com/ben-eb/postcss-discard-font-face/issues/3#issuecomment-112385556","issue_url":"https://api.github.com/repos/ben-eb/postcss-discard-font-face/issues/3","id":112385556,"user":{"login":"bfred-it","id":1402241,"avatar_url":"https://avatars.githubusercontent.com/u/1402241?v=3","gravatar_id":"","url":"https://api.github.com/users/bfred-it","html_url":"https://github.com/bfred-it","followers_url":"https://api.github.com/users/bfred-it/followers","following_url":"https://api.github.com/users/bfred-it/following{/other_user}","gists_url":"https://api.github.com/users/bfred-it/gists{/gist_id}","starred_url":"https://api.github.com/users/bfred-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bfred-it/subscriptions","organizations_url":"https://api.github.com/users/bfred-it/orgs","repos_url":"https://api.github.com/users/bfred-it/repos","events_url":"https://api.github.com/users/bfred-it/events{/privacy}","received_events_url":"https://api.github.com/users/bfred-it/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T11:01:07Z","updated_at":"2015-06-16T11:01:07Z","body":"To make it clearer, here's an example:\r\n\r\n```css\r\n/* input */\r\n@font-face {\r\n    font-family: 'name';\r\n    src: url('name.otf') format('opentype'),\r\n         url('name.woff') format('woff');\r\n}\r\n@font-face {\r\n    font-family: 'name-2';\r\n    src: url('name2.otf') format('opentype');\r\n}\r\n```\r\n```css\r\n/* current output for ['woff'] */\r\n@font-face {\r\n    font-family: 'name';\r\n    src: url('name.woff') format('woff'); /* OK */\r\n}\r\n@font-face {\r\n    font-family: 'name-2';\r\n    /* BROKEN */\r\n}\r\n```\r\n```css\r\n/* desired output for ['woff']  */\r\n@font-face {\r\n    font-family: 'name';\r\n    src: url('name.woff') format('woff'); /* OK */\r\n}\r\n@font-face {\r\n    font-family: 'name-2';\r\n    src: url('name2.otf') format('opentype');\r\n    /* WARNING: preferred type missing, src unchanged */\r\n}\r\n```\r\n\r\nIn short, the whitelist should be a a suggestion, not an order, as it might silently break functionality."}}