module.exports = {
configureWebpack: {
// other webpack options to merge in ...
},
// devServer Options don't belong into `configureWebpack`
devServer: {
public: '192.168.30.26:8080',
hot: true,
disableHostCheck: true,
}
};
然后:npm run serve
方法二:出现两个网卡,删除多余无用网卡,只留唯一现在接入网路的网卡即可。