{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/autoprefixer/issues/658","repository_url":"https://api.github.com/repos/postcss/autoprefixer","labels_url":"https://api.github.com/repos/postcss/autoprefixer/issues/658/labels{/name}","comments_url":"https://api.github.com/repos/postcss/autoprefixer/issues/658/comments","events_url":"https://api.github.com/repos/postcss/autoprefixer/issues/658/events","html_url":"https://github.com/postcss/autoprefixer/issues/658","id":155487915,"number":658,"title":"Possible to run without accessing caniuse data?","user":{"login":"benfrain","id":1318466,"avatar_url":"https://avatars.githubusercontent.com/u/1318466?v=3","gravatar_id":"","url":"https://api.github.com/users/benfrain","html_url":"https://github.com/benfrain","followers_url":"https://api.github.com/users/benfrain/followers","following_url":"https://api.github.com/users/benfrain/following{/other_user}","gists_url":"https://api.github.com/users/benfrain/gists{/gist_id}","starred_url":"https://api.github.com/users/benfrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfrain/subscriptions","organizations_url":"https://api.github.com/users/benfrain/orgs","repos_url":"https://api.github.com/users/benfrain/repos","events_url":"https://api.github.com/users/benfrain/events{/privacy}","received_events_url":"https://api.github.com/users/benfrain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-18T12:23:41Z","updated_at":"2016-05-18T13:50:53Z","closed_at":"2016-05-18T12:40:46Z","body":"I'm wondering if it is possible to config Autoprefixer so that it doesn't need to access caniuse data? For example, if my config is explicit e.g.:\r\n\r\n{ browsers: [“ie > 8”, “safari >= 6”] }\r\n\r\nDoes this still make a call to caniuse data? We recently had an issue where flex based prefixes were omitted in our builds because a fresh `npm install` was bringing down autoprefixer with later caniuse data. This was in turn removing some prefixes we still needed.\r\n\r\nIt would be advantageous for us to NOT reference caniuse data as a safeguard and just prefix based upon explicit browsers listed in our config. Is this a possibility? \r\n\r\nSorry if I am misunderstanding the way Autoprefixer goes about its magic :)"},"comment":{"url":"https://api.github.com/repos/postcss/autoprefixer/issues/comments/220031948","html_url":"https://github.com/postcss/autoprefixer/issues/658#issuecomment-220031948","issue_url":"https://api.github.com/repos/postcss/autoprefixer/issues/658","id":220031948,"user":{"login":"benfrain","id":1318466,"avatar_url":"https://avatars.githubusercontent.com/u/1318466?v=3","gravatar_id":"","url":"https://api.github.com/users/benfrain","html_url":"https://github.com/benfrain","followers_url":"https://api.github.com/users/benfrain/followers","following_url":"https://api.github.com/users/benfrain/following{/other_user}","gists_url":"https://api.github.com/users/benfrain/gists{/gist_id}","starred_url":"https://api.github.com/users/benfrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benfrain/subscriptions","organizations_url":"https://api.github.com/users/benfrain/orgs","repos_url":"https://api.github.com/users/benfrain/repos","events_url":"https://api.github.com/users/benfrain/events{/privacy}","received_events_url":"https://api.github.com/users/benfrain/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T13:50:53Z","updated_at":"2016-05-18T13:50:53Z","body":"Hi Andrey, not sure what I am doing wrong. Is it necessary to lock both autoprefixer and caniuse-db? I ask because:\r\n\r\nI have a test CSS rule:\r\n\r\n.aa { display: flex; }\r\n\r\nAnd the required output is:\r\n\r\n.aa {\r\n    display: -webkit-box;\r\n    display: -webkit-flex;\r\n    display: -ms-flexbox;\r\n    display: flex;\r\n}\r\n\r\n\r\nWith this as my package.json for Autoprefixer:\r\n\r\n\"autoprefixer\": \"^6.3.3”,\r\n\r\nAfter a clean install of NPM, the caniuse in Autoprefixer is:\r\n\r\n\"version\": \"1.0.30000466\"\r\n\r\nRunning the test yields (missing necessary prefixes):\r\n\r\n.aa {\r\n    display: -webkit-box;\r\n    display: -ms-flexbox;\r\n    display: flex;\r\n}\r\n\r\nIf I then add this to my project root package.json dependencies (to set a specific data set of known 'good' caniuse data):\r\n\r\n\"caniuse-db\": “1.0.30000415”\r\n\r\nDelete node_modules and re-run npm install\r\n\r\nRe-running the test I still get:\r\n\r\n.aa {\r\n    display: -webkit-box;\r\n    display: -ms-flexbox;\r\n    display: flex;\r\n}"}}