{"action":"created","issue":{"url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/900","repository_url":"https://api.github.com/repos/jantimon/html-webpack-plugin","labels_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/900/labels{/name}","comments_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/900/comments","events_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/900/events","html_url":"https://github.com/jantimon/html-webpack-plugin/issues/900","id":306568415,"number":900,"title":"Regression in v3.0.7: breaks hot reloading in webpack-dev-server","user":{"login":"LINKIWI","id":8386642,"avatar_url":"https://avatars2.githubusercontent.com/u/8386642?v=4","gravatar_id":"","url":"https://api.github.com/users/LINKIWI","html_url":"https://github.com/LINKIWI","followers_url":"https://api.github.com/users/LINKIWI/followers","following_url":"https://api.github.com/users/LINKIWI/following{/other_user}","gists_url":"https://api.github.com/users/LINKIWI/gists{/gist_id}","starred_url":"https://api.github.com/users/LINKIWI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LINKIWI/subscriptions","organizations_url":"https://api.github.com/users/LINKIWI/orgs","repos_url":"https://api.github.com/users/LINKIWI/repos","events_url":"https://api.github.com/users/LINKIWI/events{/privacy}","received_events_url":"https://api.github.com/users/LINKIWI/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-19T17:54:01Z","updated_at":"2018-03-19T18:54:21Z","closed_at":null,"author_association":"NONE","body":"### Summary\r\n\r\nHi there, I just upgraded to v3.0.7 and noticed that hot reloading via webpack-dev-server has broken in a development environment.\r\n\r\nSteps: Start `webpack-dev-server`, edit a watched source file\r\nExpected behavior: Observe that the bundle re-compiles, and the updated bundle is served to the browser.\r\nActual behavior as of 3.0.7: Observe that the bundle re-compiles, but the updated bundle is not served to the browser. Note that no errors or warnings are logged.\r\nThe expected behavior and actual behavior are identical in 3.0.6 and earlier.\r\n\r\nThe only change moving from 3.0.6 -> 3.0.7 is pretty minor: 26dcb98f1522e8da79e4befc24f0875bd6ef0bbc not sure if it is directly related.\r\n\r\nI haven't had time yet to whip up a full MCVE, but here are some snippets of config and environment to help provide context:\r\n\r\n### Config\r\n\r\nIrrelevant portions of the config are snipped.\r\n\r\n`webpack.config.js`:\r\n\r\n```js\r\nmodule.exports = {\r\n  entry: {\r\n    main: ...,\r\n  },\r\n  output: {\r\n    path: path.resolve(__dirname, './dist'),\r\n    publicPath: '/dist/',\r\n    filename: '[name].js',\r\n  },\r\n  module: {\r\n    rules: [\r\n      {\r\n        test: /src\\/.+\\.js$/,\r\n        exclude: /node_modules/,\r\n        loader: 'babel-loader',\r\n      },\r\n      {\r\n        test: /\\.html$/,\r\n        loader: 'html-loader',\r\n      },\r\n    ],\r\n  },\r\n  plugins: [\r\n    ...\r\n    new HTMLWebpackPlugin({\r\n      template: 'src/resources/templates/index.html',\r\n      inlineSource: '.js$',\r\n    }),\r\n    new HtmlWebpackInlineSourcePlugin(),\r\n  ].filter(Boolean),\r\n  devServer: {\r\n    historyApiFallback: true,\r\n    publicPath: '/',\r\n  },\r\n};\r\n```\r\n\r\nAnd the template `index.html`:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n  <head>\r\n    <meta charset=\"UTF-8\" />\r\n    <meta\r\n      name=\"viewport\"\r\n      content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0\"\r\n    />\r\n  </head>\r\n  <body>\r\n    <div id=\"app\"></div>\r\n  </body>\r\n</html>\r\n\r\n```\r\n\r\n### Environment\r\n\r\nOperating system: `linux 4.13.0-37-generic`\r\nNode: 8.9.0\r\nnpm: 5.6.0\r\nWebpack version: 4.1.1\r\nLibrary version: 3.0.7"},"comment":{"url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/comments/374326321","html_url":"https://github.com/jantimon/html-webpack-plugin/issues/900#issuecomment-374326321","issue_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/900","id":374326321,"user":{"login":"jantimon","id":4113649,"avatar_url":"https://avatars2.githubusercontent.com/u/4113649?v=4","gravatar_id":"","url":"https://api.github.com/users/jantimon","html_url":"https://github.com/jantimon","followers_url":"https://api.github.com/users/jantimon/followers","following_url":"https://api.github.com/users/jantimon/following{/other_user}","gists_url":"https://api.github.com/users/jantimon/gists{/gist_id}","starred_url":"https://api.github.com/users/jantimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jantimon/subscriptions","organizations_url":"https://api.github.com/users/jantimon/orgs","repos_url":"https://api.github.com/users/jantimon/repos","events_url":"https://api.github.com/users/jantimon/events{/privacy}","received_events_url":"https://api.github.com/users/jantimon/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T18:54:21Z","updated_at":"2018-03-19T18:54:21Z","author_association":"OWNER","body":"Is it fixed if you remove the compilerName parameter from the single entry plugin in your node_modules/html-webpack-plugin/lib/compiler.js ?"}}
{"actor":{"display_login":"jantimon"}}