/* * @Description: 这里输入文件功能 * @Author: zhoupeng * @Date: 2020-04-29 14:05:57 * @LastEditTime: 2020-07-21 11:12:11 */ // ref: https://umijs.org/config/ export default { define: { 'process.env.AppId': 'wxaf5a9e02cc14e220', }, treeShaking: true, history: 'hash', hash: true, plugins: [ [ 'umi-plugin-react', { antd: false, dva: true, dynamicImport: { webpackChunkName: true }, title: 'app-H5', dll: true, routes: { exclude: [ /models\//, /services\//, /model\.(t|j)sx?$/, /service\.(t|j)sx?$/, /components\//, ], }, }, ], ], exportStatic: true, base: './', publicPath: './', runtimePublicPath: true, proxy: { //校猫投喂项目 '/newpetpassportpro/pub': { target: 'http://192.168.18.152:8306', changeOrigin: true, pathRewrite: { '^/newpetpassportpro': '/newpetpassportpro', }, }, //ckuH5和推荐项目 '/newpetpassportpro/jbhd': { target: 'http://marketing.test.chongaibao.com', changeOrigin: true, pathRewrite: { '^/newpetpassportpro': '/newpetpassportpro', }, }, '/newpetpassportpro': { target: 'http://marketing.test.chongaibao.com', changeOrigin: true, pathRewrite: { '^/newpetpassportpro': '/newpetpassportpro', }, }, '/api': { target: 'http://152dev.chongaibao.com', changeOrigin: true, pathRewrite: { '^/api': '/api', }, }, '/oa-web': { target: 'http://152dev.chongaibao.com', changeOrigin: true, pathRewrite: { '^/oa-web': '/oa-web', }, }, '/ws': { target: 'https://apis.map.qq.com', changeOrigin: true, pathRewrite: { '^/ws': '/ws', }, }, }, };