我正在使用webpack-dev-server進行熱模塊更換。它工作的很好,但是這個錯誤每隔幾秒就會在控制檯中顯示出來:GET http://mysite:8080/__webpack_hmr 404 (Not Found)。Webpack hmr:__webpack_hmr 404找不到
這裏是我的webpack.config.js:
var webpack = require('webpack'),
hostname = 'mysite',
port = 8080;
module.exports = {
entry: [
'babel-polyfill',
'./src/js/main.js',
'./dev/requireCss.js',
'webpack/hot/dev-server',
// I'm assuming the fault lies in the following line, but I can't figure out what's wrong
'webpack-hot-middleware/client?path=http://'+hostname+':'+port+'/__webpack_hmr'
],
output: {
path: __dirname + '/webpack',
filename: "bundle.js",
publicPath: 'http://'+hostn