{"action":"created","issue":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/55","labels_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/55/comments","events_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/55/events","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/55","id":86707312,"number":55,"title":"question: do i need <script src=\"http://localhost:8080/webpack-dev-server.js\"></script> in my template for refresh/reload?","user":{"login":"tony-kerz","id":1223231,"avatar_url":"https://avatars.githubusercontent.com/u/1223231?v=3","gravatar_id":"","url":"https://api.github.com/users/tony-kerz","html_url":"https://github.com/tony-kerz","followers_url":"https://api.github.com/users/tony-kerz/followers","following_url":"https://api.github.com/users/tony-kerz/following{/other_user}","gists_url":"https://api.github.com/users/tony-kerz/gists{/gist_id}","starred_url":"https://api.github.com/users/tony-kerz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tony-kerz/subscriptions","organizations_url":"https://api.github.com/users/tony-kerz/orgs","repos_url":"https://api.github.com/users/tony-kerz/repos","events_url":"https://api.github.com/users/tony-kerz/events{/privacy}","received_events_url":"https://api.github.com/users/tony-kerz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-09T19:25:20Z","updated_at":"2015-07-15T19:05:18Z","closed_at":null,"body":"i've found that my template needs to look like (with the script tag):\r\n```\r\n<html>\r\n  <head>\r\n    <meta charset=\"utf-8\">\r\n  </head>\r\n  <body>\r\n    <div id='myId'></div>\r\n    <script src=\"http://localhost:8080/webpack-dev-server.js\"></script>\r\n  </body>\r\n</html>\r\n```\r\nto get either refresh or hot reload working with config similar to:\r\n```\r\nvar HtmlWebpackPlugin = require('html-webpack-plugin')\r\n\r\nmodule.exports = {\r\n  entry: {\r\n    app: [\r\n      'webpack/hot/dev-server',\r\n      './app/app.js'\r\n    ]\r\n  },\r\n  output: {\r\n    path: './build',\r\n    filename: \"bundle.js\"\r\n  },\r\n  resolve: {\r\n    extensions: ['', '.js'],\r\n  },\r\n  module: {\r\n    loaders: [\r\n      { test: /\\.scss$/, loader: 'style!css!sass' },\r\n      { test: /\\.js$/, loader: 'babel', query: {stage: 1} }\r\n    ]\r\n  },\r\n  devtool: 'cheap-module-eval-source-map',\r\n  debug: true,\r\n  plugins: [\r\n    new HtmlWebpackPlugin({template: 'index.html', inject: 'body'})\r\n  ]\r\n};\r\n```\r\nis that expected, or is there any way to get the plugin to manage that script tag...?\r\n\r\non a related note, would it be accurate to say that, generally, the plugin only works against `http://localhost:8080/` and doesn't work against `http://localhost:8080/webpack-dev-server/bundle` as the latter hijacks `index.html`?"},"comment":{"url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/comments/121715761","html_url":"https://github.com/ampedandwired/html-webpack-plugin/issues/55#issuecomment-121715761","issue_url":"https://api.github.com/repos/ampedandwired/html-webpack-plugin/issues/55","id":121715761,"user":{"login":"roughcoder","id":437907,"avatar_url":"https://avatars.githubusercontent.com/u/437907?v=3","gravatar_id":"","url":"https://api.github.com/users/roughcoder","html_url":"https://github.com/roughcoder","followers_url":"https://api.github.com/users/roughcoder/followers","following_url":"https://api.github.com/users/roughcoder/following{/other_user}","gists_url":"https://api.github.com/users/roughcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/roughcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roughcoder/subscriptions","organizations_url":"https://api.github.com/users/roughcoder/orgs","repos_url":"https://api.github.com/users/roughcoder/repos","events_url":"https://api.github.com/users/roughcoder/events{/privacy}","received_events_url":"https://api.github.com/users/roughcoder/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T19:05:18Z","updated_at":"2015-07-15T19:05:18Z","body":"+1, having to bodge this in atm - the PR solution seems sound"}}