webpack local development can only be opened from the service with localhost and port number can not be opened by the local ip address

Remember this time in webpack profile

devServer added host: '0.0.0.0' 

or the startup command added --host 0.0.0.0

Guess you like

Origin www.cnblogs.com/beileixinqing/p/11078320.html