WDS已断开连接!不断出现

时间:2016-11-12 18:20:59

标签: firefox websocket webpack webpack-dev-server sockjs

运行webpack-dev-server很好。首页加载正常。但是当我刷新浏览器时,每隔2秒WDS就会断开'出现在控制台和浏览器无限重新加载。此问题仅出现在 Firefox / Firefox Developer Edition浏览器中。浏览器Chrome,Edge,IE11没有问题。 Console. Error trace

package.json:
....
"webpack": "^1.13.3",
"webpack-dev-server": "^1.16.2"

webpack.config.js:
....
entry: [
    //'app': './app/app.ts'
 'webpack-dev-server/client?http://localhost:8080/', './app/app.ts'

],
output: {
    publicPath: 'http://localhost:8080/',
    filename: 'app/app.bundle.js'
},
....

Firefox Developer Edition 51.0a2

0 个答案:

没有答案