{"action":"created","issue":{"url":"https://api.github.com/repos/addyosmani/critical/issues/59","labels_url":"https://api.github.com/repos/addyosmani/critical/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/addyosmani/critical/issues/59/comments","events_url":"https://api.github.com/repos/addyosmani/critical/issues/59/events","html_url":"https://github.com/addyosmani/critical/pull/59","id":56303072,"number":59,"title":"Added stream wrapper","user":{"login":"bezoerb","id":1697800,"avatar_url":"https://avatars.githubusercontent.com/u/1697800?v=3","gravatar_id":"","url":"https://api.github.com/users/bezoerb","html_url":"https://github.com/bezoerb","followers_url":"https://api.github.com/users/bezoerb/followers","following_url":"https://api.github.com/users/bezoerb/following{/other_user}","gists_url":"https://api.github.com/users/bezoerb/gists{/gist_id}","starred_url":"https://api.github.com/users/bezoerb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bezoerb/subscriptions","organizations_url":"https://api.github.com/users/bezoerb/orgs","repos_url":"https://api.github.com/users/bezoerb/repos","events_url":"https://api.github.com/users/bezoerb/events{/privacy}","received_events_url":"https://api.github.com/users/bezoerb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bezoerb","id":1697800,"avatar_url":"https://avatars.githubusercontent.com/u/1697800?v=3","gravatar_id":"","url":"https://api.github.com/users/bezoerb","html_url":"https://github.com/bezoerb","followers_url":"https://api.github.com/users/bezoerb/followers","following_url":"https://api.github.com/users/bezoerb/following{/other_user}","gists_url":"https://api.github.com/users/bezoerb/gists{/gist_id}","starred_url":"https://api.github.com/users/bezoerb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bezoerb/subscriptions","organizations_url":"https://api.github.com/users/bezoerb/orgs","repos_url":"https://api.github.com/users/bezoerb/repos","events_url":"https://api.github.com/users/bezoerb/events{/privacy}","received_events_url":"https://api.github.com/users/bezoerb/received_events","type":"User","site_admin":false},"milestone":null,"comments":30,"created_at":"2015-02-02T22:29:09Z","updated_at":"2015-03-17T22:22:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/addyosmani/critical/pulls/59","html_url":"https://github.com/addyosmani/critical/pull/59","diff_url":"https://github.com/addyosmani/critical/pull/59.diff","patch_url":"https://github.com/addyosmani/critical/pull/59.patch"},"body":"This PR adds a stream wrapper to simplify the usage of critical with multiple src files in gulp (#38)"},"comment":{"url":"https://api.github.com/repos/addyosmani/critical/issues/comments/82622610","html_url":"https://github.com/addyosmani/critical/pull/59#issuecomment-82622610","issue_url":"https://api.github.com/repos/addyosmani/critical/issues/59","id":82622610,"user":{"login":"micahblu","id":441559,"avatar_url":"https://avatars.githubusercontent.com/u/441559?v=3","gravatar_id":"","url":"https://api.github.com/users/micahblu","html_url":"https://github.com/micahblu","followers_url":"https://api.github.com/users/micahblu/followers","following_url":"https://api.github.com/users/micahblu/following{/other_user}","gists_url":"https://api.github.com/users/micahblu/gists{/gist_id}","starred_url":"https://api.github.com/users/micahblu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micahblu/subscriptions","organizations_url":"https://api.github.com/users/micahblu/orgs","repos_url":"https://api.github.com/users/micahblu/repos","events_url":"https://api.github.com/users/micahblu/events{/privacy}","received_events_url":"https://api.github.com/users/micahblu/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T22:22:11Z","updated_at":"2015-03-17T22:22:11Z","body":"@bezoerb thanks for the quick reply, I had noticed that I was missing the .stream after I commented, I have added it, unfortunately the error persists.\r\n \r\ngulpfile is now:\r\n```js \r\nvar gulp = require('gulp'),\r\n    critical = require('critical').stream,\r\n    fs = require('fs');\r\n\r\n\r\n// Generate & Inline Critical-path CSS\r\ngulp.task('critical', function () {\r\n    return gulp.src('dist/**/*.html')\r\n        .pipe(critical({base: 'dist/',css: ['dist/stylesheets/styles.css']}))\r\n        .pipe(gulp.dest('dist'));\r\n});\r\n```\r\n\r\nerror is:\r\n```shell\r\n[15:25:28] Starting 'critical'...\r\n[15:25:28] 'critical' errored after 6.12 ms\r\n[15:25:28] TypeError: undefined is not a function\r\n    at Gulp.<anonymous> (/Users/micahblu/Projects/WireCash-Website/gulpfile.js:10:15)\r\n    at module.exports (/Users/micahblu/Projects/WireCash-Website/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7)\r\n    at Gulp.Orchestrator._runTask (/Users/micahblu/Projects/WireCash-Website/node_modules/gulp/node_modules/orchestrator/index.js:273:3)\r\n    at Gulp.Orchestrator._runStep (/Users/micahblu/Projects/WireCash-Website/node_modules/gulp/node_modules/orchestrator/index.js:214:10)\r\n    at Gulp.Orchestrator.start (/Users/micahblu/Projects/WireCash-Website/node_modules/gulp/node_modules/orchestrator/index.js:134:8)\r\n    at /usr/local/lib/node_modules/gulp/bin/gulp.js:121:20\r\n    at process._tickCallback (node.js:419:13)\r\n    at Function.Module.runMain (module.js:499:11)\r\n    at startup (node.js:119:16)\r\n    at node.js:906:3\r\n```"}}