{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/473","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/473/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/473/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/473","id":152703966,"number":473,"title":"version 2.0 issue with output.path","user":{"login":"kentcdodds","id":1500684,"avatar_url":"https://avatars.githubusercontent.com/u/1500684?v=3","gravatar_id":"","url":"https://api.github.com/users/kentcdodds","html_url":"https://github.com/kentcdodds","followers_url":"https://api.github.com/users/kentcdodds/followers","following_url":"https://api.github.com/users/kentcdodds/following{/other_user}","gists_url":"https://api.github.com/users/kentcdodds/gists{/gist_id}","starred_url":"https://api.github.com/users/kentcdodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentcdodds/subscriptions","organizations_url":"https://api.github.com/users/kentcdodds/orgs","repos_url":"https://api.github.com/users/kentcdodds/repos","events_url":"https://api.github.com/users/kentcdodds/events{/privacy}","received_events_url":"https://api.github.com/users/kentcdodds/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/Needs%20Response%20From%20Author","name":"Needs Response From Author","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-05-03T05:39:40Z","updated_at":"2016-09-03T22:00:10Z","closed_at":"2016-09-03T22:00:10Z","body":"I'm using `webpack@2.1.0-beta.6` (latest beta) and `webpack-dev-server@2.0.0-beta` and having trouble with `output.path`. I set `output.path` to a `dist` directory. When I run `webpack`. The bundle gets generated and placed in the `dist` directory as expected. But when I run `webpack-dev-server` the bundle is served from the root (as if no `output.path` is specified). Any ideas?\r\n\r\nHere's [a repo](https://github.com/kentcdodds/es6-todomvc/tree/help/path) that reproduces the issue.\r\n\r\nHere's the `webpack.config.js`:\r\n\r\n```javascript\r\nconst {resolve} = require('path')\r\nmodule.exports = {\r\n  entry: './js/app.js',\r\n  output: {\r\n    filename: 'bundle.js',\r\n    path: resolve(__dirname, 'dist'),\r\n    pathinfo: true,\r\n  },\r\n  context: __dirname,\r\n  devtool: 'eval',\r\n  module: {\r\n    loaders: [\r\n      {test: /\\.js$/, loader: 'babel!eslint', exclude: /node_modules/},\r\n      {test: /\\.css$/, loader: 'style!css'},\r\n    ],\r\n  },\r\n}\r\n```\r\n\r\nHere's a gif demonstrating the issue:\r\n\r\n![problem](https://cloud.githubusercontent.com/assets/1500684/14975418/b8845a16-10be-11e6-9333-c7704470ffdc.gif)\r\n\r\nLet me know if you need any more information. I'm in the process of creating a video course about Webpack and I'll be using Webpack 2. I'd really like this to work. Help is definitely appreciated! Let me know if there's anything I can do! Happy to submit a PR with a little direction."}}
{"actor":{"display_login":"kentcdodds"}}