{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/postcss/issues/334","labels_url":"https://api.github.com/repos/postcss/postcss/issues/334/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss/issues/334/comments","events_url":"https://api.github.com/repos/postcss/postcss/issues/334/events","html_url":"https://github.com/postcss/postcss/issues/334","id":75928185,"number":334,"title":"Pixrem is not a postcss plugin","user":{"login":"ismay","id":7355199,"avatar_url":"https://avatars.githubusercontent.com/u/7355199?v=3","gravatar_id":"","url":"https://api.github.com/users/ismay","html_url":"https://github.com/ismay","followers_url":"https://api.github.com/users/ismay/followers","following_url":"https://api.github.com/users/ismay/following{/other_user}","gists_url":"https://api.github.com/users/ismay/gists{/gist_id}","starred_url":"https://api.github.com/users/ismay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismay/subscriptions","organizations_url":"https://api.github.com/users/ismay/orgs","repos_url":"https://api.github.com/users/ismay/repos","events_url":"https://api.github.com/users/ismay/events{/privacy}","received_events_url":"https://api.github.com/users/ismay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-13T10:04:30Z","updated_at":"2015-05-13T10:19:51Z","closed_at":"2015-05-13T10:19:51Z","body":"It's listed in this repo's readme as a plugin, but doesn't work with ember-cli-postcss (whereas other postcss plugins that I'm using with it work just fine). I've checked the pixrem source code, and pixrem doesn't seem to export a postcss plugin like postcss-custom-properties does for example:\r\n\r\nhttps://github.com/postcss/postcss-custom-properties/blob/master/index.js#L119\r\n```javascript\r\n// this works with ember-cli-postcss\r\nmodule.exports = postcss.plugin(\"postcss-custom-properties\", function(options) {\r\n  // etc.\r\n}\r\n```\r\n\r\nInstead it seems to use postcss for *internal* processing, but it doesn't export the functionality as a standard postcss plugin (but more as a general node library):\r\n\r\nhttps://github.com/robwierzbowski/node-pixrem/blob/master/lib/pixrem.js#L119\r\n```javascript\r\n// this doesn't work with ember-cli-postcss\r\nvar pixrem = function (rootvalue, options) {\r\n  return new Pixrem(rootvalue, options);\r\n};\r\npixrem.process = function (css, rootvalue, options, postcssoptions) {\r\n  return new Pixrem(rootvalue, options).process(css, postcssoptions);\r\n};\r\npixrem.postcss = function (css) {\r\n  return new Pixrem().postcss(css);\r\n};\r\n\r\nmodule.exports = pixrem;\r\n```\r\n\r\nWhich makes sense, given its name: *node-pixrem*. So am I missing something, or is the inclusion of node-pixrem on the plugin list a mistake?"},"comment":{"url":"https://api.github.com/repos/postcss/postcss/issues/comments/101612380","html_url":"https://github.com/postcss/postcss/issues/334#issuecomment-101612380","issue_url":"https://api.github.com/repos/postcss/postcss/issues/334","id":101612380,"user":{"login":"ismay","id":7355199,"avatar_url":"https://avatars.githubusercontent.com/u/7355199?v=3","gravatar_id":"","url":"https://api.github.com/users/ismay","html_url":"https://github.com/ismay","followers_url":"https://api.github.com/users/ismay/followers","following_url":"https://api.github.com/users/ismay/following{/other_user}","gists_url":"https://api.github.com/users/ismay/gists{/gist_id}","starred_url":"https://api.github.com/users/ismay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismay/subscriptions","organizations_url":"https://api.github.com/users/ismay/orgs","repos_url":"https://api.github.com/users/ismay/repos","events_url":"https://api.github.com/users/ismay/events{/privacy}","received_events_url":"https://api.github.com/users/ismay/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T10:19:51Z","updated_at":"2015-05-13T10:19:51Z","body":"Ah ok, my mistake. Can see it here as well: https://github.com/postcss/postcss/blob/master/docs/api.md#processoruseplugin . Ok, so then it should be fixed in ember-cli-postcss (or broccoli-postcss). I'll see what I can do there. Thanks!"}}