webpack5启动项目总是运行在0.0.0.0:8080上

185 阅读1分钟

修改package.json 中的scipt -serve配置,这里配置了host 0.0.0.0会优先于devSever配置,其次看deverSever配置 image.png

image.png