{"action":"created","issue":{"url":"https://api.github.com/repos/wallabyjs/public/issues/9","labels_url":"https://api.github.com/repos/wallabyjs/public/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/public/issues/9/comments","events_url":"https://api.github.com/repos/wallabyjs/public/issues/9/events","html_url":"https://github.com/wallabyjs/public/issues/9","id":56295078,"number":9,"title":"Support webpack","user":{"login":"ArtemGovorov","id":979966,"avatar_url":"https://avatars.githubusercontent.com/u/979966?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtemGovorov","html_url":"https://github.com/ArtemGovorov","followers_url":"https://api.github.com/users/ArtemGovorov/followers","following_url":"https://api.github.com/users/ArtemGovorov/following{/other_user}","gists_url":"https://api.github.com/users/ArtemGovorov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemGovorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemGovorov/subscriptions","organizations_url":"https://api.github.com/users/ArtemGovorov/orgs","repos_url":"https://api.github.com/users/ArtemGovorov/repos","events_url":"https://api.github.com/users/ArtemGovorov/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemGovorov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wallabyjs/public/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-02T21:22:54Z","updated_at":"2015-02-24T02:05:26Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/wallabyjs/public/issues/comments/75685213","html_url":"https://github.com/wallabyjs/public/issues/9#issuecomment-75685213","issue_url":"https://api.github.com/repos/wallabyjs/public/issues/9","id":75685213,"user":{"login":"ArtemGovorov","id":979966,"avatar_url":"https://avatars.githubusercontent.com/u/979966?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtemGovorov","html_url":"https://github.com/ArtemGovorov","followers_url":"https://api.github.com/users/ArtemGovorov/followers","following_url":"https://api.github.com/users/ArtemGovorov/following{/other_user}","gists_url":"https://api.github.com/users/ArtemGovorov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemGovorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemGovorov/subscriptions","organizations_url":"https://api.github.com/users/ArtemGovorov/orgs","repos_url":"https://api.github.com/users/ArtemGovorov/repos","events_url":"https://api.github.com/users/ArtemGovorov/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemGovorov/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T02:05:26Z","updated_at":"2015-02-24T02:05:26Z","body":"@jeffling I have changed the working directory to be the project working dir. So now project.cwd() will return the project directory and hopefully file resolution should work. Also, I have added a first parameter to the configuration function, that contains `localProjectDir` property, returning the project dir:\r\n```javascript\r\nmodule.exports = function (wallaby) {\r\n  console.log(wallaby.localProjectDir);\r\n  return {...};\r\n};\r\n```\r\n\r\nPlease let me know if I can change or add anything else  to make it easier. \r\n\r\nSo, it seems like it's almost working with gulp-webpack + wallaby-vinyl-adapter? Do you have some sample webpack project with vinyl-adapter and wallaby config somewhere that I can try? Perhaps we could recommend it as the official way to run webpack with wallaby.\r\n\r\n@okonet @sokra @jeffling  from my brief look into webpack, it seems it can be configured something like:\r\n\r\n```javascript\r\nvar webpack = require('webpack');\r\n\r\nvar compiler = webpack({\r\n  entry: {\r\n    pageA: \"./pageA\",\r\n    pageB: \"./pageB\",\r\n    shared: \"./shared\",\r\n    common: \"./common\"\\\r\n    // list of files here that I can if needed expose from wallaby API\r\n  },\r\n  output: {\r\n    path: require('path').join(__dirname, \"js\"),\r\n    filename: \"[name].js\"\r\n  },\r\n  plugins: [new webpack.optimize.CommonsChunkPlugin({\r\n    filename: 'init.js',\r\n    minChunks: Infinity\r\n  })]\r\n});\r\n```\r\nso that it emits 1 self-sufficient file per each project file and 1 init.js file that can be included before everything else. Production project configuration should obviously use better bundle set up, but for tests - it's ideal. \r\n\r\nI am assuming that this way it should probably be possible to create the compiler once and then somehow invoke in from preprocessor to re-compile only changed files? Not sure how well webpack internal caching would work in this case.\r\n\r\nYour thoughts?"}}