module.exports = { publicPath: './', outputDir: 'dist', assetsDir: 'assets', devServer: { proxy: { [process.env.VUE_APP_BASE_API]: { target: 'http://localhost:8099/', changeOrigin: true, ws: true, timeout: 1000 * 60 * 10, // 传入请求的超时(以毫秒为单位) vuecli网址 https://cli.vuejs.org/zh/config/#css-loaderoptions proxyTimeout: 1000 * 60 * 10, // 代理未收到目标响应时的超时时间(以毫秒为单位) vue cli跳转proxy https://github.com/chimurai/http-proxy-middleware#proxycontext-config pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' } } }, // Various Dev Server settings port: 8080 // can be overwritten by process.env.PORT, if port is in use, a free one will be determined } }