最近在用webpack搭建本地服务器的时候,因为不想总是用localhost来跑,所以对webpack.config.js进行了配置,如下

devServer: {
//publicPath: '/dist/',
host: '192.168.0.104',
inline: true,
port: 8090,
colors: true
},

打开如下图:

webpack 配置IP 和端口号

相关文章:

  • 2022-12-23
  • 2021-05-12
  • 2021-11-23
  • 2021-06-16
  • 2021-08-16
  • 2021-10-01
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2021-11-15
  • 2021-11-23
  • 2021-06-04
  • 2021-11-23
  • 2021-09-16
  • 2022-01-14
相关资源
相似解决方案