{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-with-common-libs/issues/5","labels_url":"https://api.github.com/repos/webpack/webpack-with-common-libs/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-with-common-libs/issues/5/comments","events_url":"https://api.github.com/repos/webpack/webpack-with-common-libs/issues/5/events","html_url":"https://github.com/webpack/webpack-with-common-libs/issues/5","id":34694488,"number":5,"title":"Gulp example ignores Gulp!","user":{"login":"indolering","id":44454,"avatar_url":"https://avatars.githubusercontent.com/u/44454?v=3","gravatar_id":"","url":"https://api.github.com/users/indolering","html_url":"https://github.com/indolering","followers_url":"https://api.github.com/users/indolering/followers","following_url":"https://api.github.com/users/indolering/following{/other_user}","gists_url":"https://api.github.com/users/indolering/gists{/gist_id}","starred_url":"https://api.github.com/users/indolering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indolering/subscriptions","organizations_url":"https://api.github.com/users/indolering/orgs","repos_url":"https://api.github.com/users/indolering/repos","events_url":"https://api.github.com/users/indolering/events{/privacy}","received_events_url":"https://api.github.com/users/indolering/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-05-31T03:34:44Z","updated_at":"2015-02-16T20:24:10Z","closed_at":null,"body":"The webpage \"plugins\" for gulp state, \"No need for a gulp plugin. Just use webpack directly.\" but your examples don't __just__ use WebPack directly, they miss out on the point of Gulp entirely.\r\n\r\n\r\n\r\nFor example, this is how I use Browserify:\r\n\r\n```JavaScript\r\n  gulp.src('./scripts/index.js', {read: false})\r\n    .pipe(browserify({\r\n      insertGlobals: false,\r\n      debug: true,\r\n      transform: ['uglifyify'],\r\n      'global-transform': true\r\n    }))\r\n    .pipe(rename('speech.js'))\r\n    .pipe(gulp.dest('./spx/meta/'));\r\n```\r\n\r\nThis is how I setup Google Closure:\r\n```\r\n  gulp.src('./babel/babel.js')\r\n    .pipe(closure({compilation_level: 'ADVANCED_OPTIMIZATIONS'}))\r\n    .pipe(rename('babel.mini.js'))\r\n    .pipe(gulp.dest(location));\r\n\r\n  gulp.src('./babel/babel.js')\r\n    .pipe(closure({compilation_level: 'ADVANCED_OPTIMIZATIONS'}))\r\n    .pipe(zip())\r\n    .pipe(rename('babel.mini.js.gz'))\r\n    .pipe(gulp.dest(location));\r\n```\r\nHere is how I am supposed to use Web Pack with Gulp:\r\n```\r\ngulp.task(\"webpack\", function(callback) {\r\n    // run webpack\r\n    webpack({\r\n        // configuration\r\n    }, function(err, stats) {\r\n        if(err) throw new gutil.PluginError(\"webpack\", err);\r\n        gutil.log(\"[webpack]\", stats.toString({\r\n            // output options\r\n        }));\r\n        callback();\r\n    });\r\n});\r\n```\r\nThe  `// configuration` shows that you are missing the point of Gulp: **code** over configuration.  If you are asking me to write a bunch of foreign config than you obviously \"need a plugin\" because I don't want to \"use Web Pack directly\".  I want to pass it files using a pipe and I want to direct the output and your examples don't tell me how to do that.\r\n\r\nIf I just wanted a task runner, I could use Grunt or WebPack directly. I choose Gulp because it makes it easier for me to iteratively build up a large number of tasks."},"comment":{"url":"https://api.github.com/repos/webpack/webpack-with-common-libs/issues/comments/74567195","html_url":"https://github.com/webpack/webpack-with-common-libs/issues/5#issuecomment-74567195","issue_url":"https://api.github.com/repos/webpack/webpack-with-common-libs/issues/5","id":74567195,"user":{"login":"shama","id":99604,"avatar_url":"https://avatars.githubusercontent.com/u/99604?v=3","gravatar_id":"","url":"https://api.github.com/users/shama","html_url":"https://github.com/shama","followers_url":"https://api.github.com/users/shama/followers","following_url":"https://api.github.com/users/shama/following{/other_user}","gists_url":"https://api.github.com/users/shama/gists{/gist_id}","starred_url":"https://api.github.com/users/shama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shama/subscriptions","organizations_url":"https://api.github.com/users/shama/orgs","repos_url":"https://api.github.com/users/shama/repos","events_url":"https://api.github.com/users/shama/events{/privacy}","received_events_url":"https://api.github.com/users/shama/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T20:24:10Z","updated_at":"2015-02-16T20:24:10Z","body":"@nschubach Feel free to open an issue on gulp-webpack. Although I can't duplicate your issue. That error hints towards something strange happening to your copy of webpack or gulp. `compiler` should definitely be defined. I recommend `rm -rf node_modules && npm cache clean && npm i` and make sure you're using latest versions of things.\r\n\r\n@sokra This issue could probably be closed now."}}