Safari update frame with webpack-dev server in https mode

I had a strange problem when I tested the JS module in Safari version 9.0.1 (11601.2.7.2)

Therefore, I use a webpack-dev server with the standard HMR configuration (but with https: true ), and the browser continues to update, even if I do not update the source file. In fact, it gets stuck in the update cycle.

When I open the inspector console, I see this error shortly before rebooting:

WebSocket network error: OSStatus Error -9807: Invalid certificate chain

and then before updating

 [WDS] Disconnected! [WDS] App updated. Reloading... 

Perhaps something is due to a self-signed certificate error. The server is running on https://localhost:1111 , and I visited the page on a different tab to accept the certificates.

Has anyone come across this before?

+5
source share
1 answer

pass inline: false parameter to your webpack devServer configuration, for example:

 devServer: { hot: false, contentBase: './dist', https: true, port: 8000, inline: false, }, 
+9
source

Source: https://habr.com/ru/post/1259146/


All Articles