mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-15 22:05:22 -05:00
fix(dev-server): dev server behind NAT network (#868)
(#828)Webpack dev client could not work when server is behind NAT network. Now, the dev client tries to connect to browser's window.location.
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = (api, options) => {
|
||||
if (!isProduction) {
|
||||
const devClients = [
|
||||
// dev server client
|
||||
require.resolve(`webpack-dev-server/client`) + `?${urls.localUrlForBrowser}`,
|
||||
require.resolve(`webpack-dev-server/client`),
|
||||
// hmr client
|
||||
require.resolve(projectDevServerOptions.hotOnly
|
||||
? 'webpack/hot/only-dev-server'
|
||||
|
||||
Reference in New Issue
Block a user