Vue-cli: hot reload(HMR) not work when use other domain

Created on 24 Jul 2018  路  3Comments  路  Source: vuejs/vue-cli

Version

3.0.0-rc.5

Reproduction link

http://www.baidu.com/no-url-here

Steps to reproduce

pls look the domain:

http://192.168.1.113:8080/sockjs-node/info?t=1532447208549
ws://192.168.1.113:8080/sockjs-node/095/w330zyvl/websocket
http://www.dev..com/b0b2f0652cccee4c5b96.hot-update.json

when:

What is expected?

the domain is wrong

What is actually happening?

the domain is wrong


[email protected]

Most helpful comment

Use devServer.public in vue.config.js to specify your public HMR URL:

module.exports = {
  devServer: {
    public: 'www.dev.com/test.htm'
  }
}

All 3 comments

Use devServer.public in vue.config.js to specify your public HMR URL:

module.exports = {
  devServer: {
    public: 'www.dev.com/test.htm'
  }
}

I upgrade vue-cli to 3.0.0-rc.11 was resolve this issue.

@yyx990803 Thank you very much. That resolves an issue I was having.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OmgImAlexis picture OmgImAlexis  路  3Comments

csakis picture csakis  路  3Comments

joshuajohnson814 picture joshuajohnson814  路  3Comments

JIANGYUJING1995 picture JIANGYUJING1995  路  3Comments

chasegiunta picture chasegiunta  路  3Comments