admin管理员组文章数量:1289483
I encountered a strange issue when I was testing a JS module on Safari Version 9.0.1 (11601.2.7.2)
So I am using webpack-dev-server with standard HMR configuration (but with https: true
) and the browser keeps refreshing even if I don't make updates to my source file. In fact it is stuck in a refresh loop.
When I open the inspector console I see this error briefly before reload:
WebSocket network error: OSStatus Error -9807: Invalid certificate chain
and then just before refresh
[WDS] Disconnected!
[WDS] App updated. Reloading...
Probably has something to do with the self-signed certificate verification failing. The server's running on https://localhost:1111
and I have visited the page in another tab to accept the certificates.
Has anyone encountered this before?
I encountered a strange issue when I was testing a JS module on Safari Version 9.0.1 (11601.2.7.2)
So I am using webpack-dev-server with standard HMR configuration (but with https: true
) and the browser keeps refreshing even if I don't make updates to my source file. In fact it is stuck in a refresh loop.
When I open the inspector console I see this error briefly before reload:
WebSocket network error: OSStatus Error -9807: Invalid certificate chain
and then just before refresh
[WDS] Disconnected!
[WDS] App updated. Reloading...
Probably has something to do with the self-signed certificate verification failing. The server's running on https://localhost:1111
and I have visited the page in another tab to accept the certificates.
Has anyone encountered this before?
Share Improve this question asked Nov 2, 2016 at 9:30 nardeasnardeas 6346 silver badges14 bronze badges1 Answer
Reset to default 12pass the inline: false parameter to your webpack devServer config, something like:
devServer: {
hot: false,
contentBase: './dist',
https: true,
port: 8000,
inline: false,
},
本文标签: javascriptSafari refresh loop with webpackdevserver in https modeStack Overflow
版权声明:本文标题:javascript - Safari refresh loop with webpack-dev-server in https mode - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741450088a2379436.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论