module.exports = { transpileDependencies: true, publicPath: "/", outputDir: "dist", assetsDir: "static", devServer: { port: 8888, //前端服务启动的端口号 host: 'localhost', //前端服务启动后的访问ip,默认为localhost, host和port组成了前端服务启动后的访问入口。 https: false, open: true, proxy: { '/apis': { //拦截上下文 target: 'http://192.168.1.102:9103', changeOrigin: true, //是否跨域 pathRewrite: { "^/apis": "" } } } } };