{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/508","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/508/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/508/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/508","id":160317749,"number":508,"title":"How to output .html to disk using Webpack-dev-server and HTML-webpack-plugin?","user":{"login":"IAMtheIAM","id":13709948,"avatar_url":"https://avatars.githubusercontent.com/u/13709948?v=3","gravatar_id":"","url":"https://api.github.com/users/IAMtheIAM","html_url":"https://github.com/IAMtheIAM","followers_url":"https://api.github.com/users/IAMtheIAM/followers","following_url":"https://api.github.com/users/IAMtheIAM/following{/other_user}","gists_url":"https://api.github.com/users/IAMtheIAM/gists{/gist_id}","starred_url":"https://api.github.com/users/IAMtheIAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAMtheIAM/subscriptions","organizations_url":"https://api.github.com/users/IAMtheIAM/orgs","repos_url":"https://api.github.com/users/IAMtheIAM/repos","events_url":"https://api.github.com/users/IAMtheIAM/events{/privacy}","received_events_url":"https://api.github.com/users/IAMtheIAM/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-15T01:02:10Z","updated_at":"2016-08-21T13:33:03Z","closed_at":"2016-08-21T13:33:03Z","body":"I use `webpack` and `html-webpack-plugin` to update my index.html file with the generated script bundle, such as `bundle.[hash].js`.\r\n\r\nThen I have to run `webpack-dev-server` so I can load that bundle into memory and take advantage of Hot Module Replacement.\r\n\r\nThis makes the code compile twice.\r\n\r\nHowever, what I would like is for `webpack-dev-server` to also be able to update the index.html file with the new `bundle.[hash].js`, because now I have to run `webpack` followed by `webpack-dev-sever`. It seems weird to compile twice.\r\n\r\nAgain, the only reason I run `webpack` is to get my index.html file updated with the new hash of the bundle. If I could get `webpack-dev-server` to output an updated index.html to disk, then I could drop the `webpack` command altogether. \r\n\r\nIs this possible? If so, what would the webpack config change be? My webpack config is very long so I didnt think it would help to post it here.\r\n\r\n "}}
{"actor":{"display_login":"SpaceK33z"}}