12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- // ref: https://umijs.org/config/
- export default {
- treeShaking: true,
- routes: [
- {
- path: '/',
- component: '../layouts/index',
- routes: [
- { path: '/first', component: '../pages/Home/First' },//首次充值
- { path: '/daily', component: '../pages/Home/Daily' },//每日充值
- { path: '/combine', component: '../pages/Combine/Combine' }//充值活动(首充+每充)
- ]
- }
- ],
- plugins: [
- // ref: https://umijs.org/plugin/umi-plugin-react.html
- ['umi-plugin-react', {
- antd: false,
- dva: true,
- dynamicImport: false,
- title: '',
- dll: false,
- hd: true,
- locale: {
- default: 'zh-CN', //默认语言 zh-CN,如果 baseSeparator 设置为 _,则默认为 zh_CN
- baseNavigator: true, // 为true时,用navigator.language的值作为默认语言
- antd: true, // 是否启用antd的<LocaleProvider />
- baseSeparator: '-', // 语言默认分割符 -
- },
- routes: {
- exclude: [
- /models\//,
- /services\//,
- /model\.(t|j)sx?$/,
- /service\.(t|j)sx?$/,
- /components\//,
- ],
- },
- }],
- ],
- lessLoaderOptions: {
- javascriptEnabled: true,
- },
- extraBabelPlugins: [
- ["import", { libraryName: "antd-mobile", style: true }] // `style: true` 会加载 less 文件
- ],
- proxy: {
- '/api-app': {
- //target: 'http://api.dev.hidouyou.com',
- target: 'http://localhost:9201',
- changeOrigin: true,
- //pathRewrite: { '^/server': '' },
- },
- '/api-common': {
- //target: 'http://api.dev.hidouyou.com',
- target: 'http://localhost:9230',
- changeOrigin: true,
- //pathRewrite: { '^/server': '' },
- },
- },
- hash: true,
- outputPath: './recharge'
- }
|