标签:ack change webpack content bpa proxy api base 代理
devServer: { contentBase: path.resolve(__dirname, "../dev"), compress: true, port: 9000,//本身的端口号 host: ‘localhost‘, proxy: { ‘/api‘: { target: ‘http://localhost:3000‘,//代理到的地址 changeOrigin: true } } }
标签:ack change webpack content bpa proxy api base 代理
原文地址:https://www.cnblogs.com/kaiqinzhang/p/10801742.html