{"action":"created","issue":{"url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/26","labels_url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/26/comments","events_url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/26/events","html_url":"https://github.com/w0rm/gulp-postcss/issues/26","id":67152111,"number":26,"title":"Unable to use cssnext as a processor with gulp-postcss","user":{"login":"kabadesu","id":344908,"avatar_url":"https://avatars.githubusercontent.com/u/344908?v=3","gravatar_id":"","url":"https://api.github.com/users/kabadesu","html_url":"https://github.com/kabadesu","followers_url":"https://api.github.com/users/kabadesu/followers","following_url":"https://api.github.com/users/kabadesu/following{/other_user}","gists_url":"https://api.github.com/users/kabadesu/gists{/gist_id}","starred_url":"https://api.github.com/users/kabadesu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kabadesu/subscriptions","organizations_url":"https://api.github.com/users/kabadesu/orgs","repos_url":"https://api.github.com/users/kabadesu/repos","events_url":"https://api.github.com/users/kabadesu/events{/privacy}","received_events_url":"https://api.github.com/users/kabadesu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-04-08T15:11:13Z","updated_at":"2015-04-08T20:05:44Z","closed_at":null,"body":"I'd like to use the cssnext plugin pack with gulp-postcss, as my first processor to be followed by a set of other cherry picked postcss plugins. The trouble is that I can't figure out how to get cssnext working with gulp-postcss. In the following code snippet I think I'm using `cssnext()` wrong within the `processors` array, but everything I've tried to correct it fails.\r\n\r\n```\r\nvar gulp = require('gulp');\r\nvar postcss = require('gulp-postcss');\r\nvar cssnext = require('cssnext');\r\n\r\nconfig = {\r\n  cssDistPath: './dist/css',\r\n  cssSrcGlob:  './src/css/**/*.css'\r\n};\r\n\r\ngulp.task('css', function () {\r\n\r\n  var processors = [\r\n    cssnext({\r\n      features: {\r\n        calc: {\r\n            preserve: true\r\n        }\r\n      }\r\n    })\r\n  ];\r\n\r\n  return gulp.src(config.cssSrcGlob)\r\n    .pipe(postcss(processors))\r\n    .pipe(gulp.dest(config.cssDistPath));\r\n\r\n});\r\n```\r\n\r\nDo you have any suggestions on how to get this working, or a better configuration?"},"comment":{"url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/comments/91020316","html_url":"https://github.com/w0rm/gulp-postcss/issues/26#issuecomment-91020316","issue_url":"https://api.github.com/repos/w0rm/gulp-postcss/issues/26","id":91020316,"user":{"login":"w0rm","id":43472,"avatar_url":"https://avatars.githubusercontent.com/u/43472?v=3","gravatar_id":"","url":"https://api.github.com/users/w0rm","html_url":"https://github.com/w0rm","followers_url":"https://api.github.com/users/w0rm/followers","following_url":"https://api.github.com/users/w0rm/following{/other_user}","gists_url":"https://api.github.com/users/w0rm/gists{/gist_id}","starred_url":"https://api.github.com/users/w0rm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w0rm/subscriptions","organizations_url":"https://api.github.com/users/w0rm/orgs","repos_url":"https://api.github.com/users/w0rm/repos","events_url":"https://api.github.com/users/w0rm/events{/privacy}","received_events_url":"https://api.github.com/users/w0rm/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T20:05:44Z","updated_at":"2015-04-08T20:05:44Z","body":"@ai  it silently failed for me, but when I changed `postcss(processors)` to `var processor = postcss(); processors.forEach(processor.use. bind(processor))` then it worked. Don't know what should be the test case.\r\n\r\n\r\n"}}