容器中的 webpack 默认会使用容器中的地址,这个地址外部无法访问,从而无法使用热更新。
// vue.config.js module.exports = { devServer: { public: "0.0.0.0:8080", }, };