12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import { defineConfig } from 'umi';
- export default defineConfig({
- routes: [
- { path: '/vipRecharge', component: '@/pages/VipRecharge/VipRecharge' },
- //迁移JS项目
- {
- path: '/',
- redirect: '/vipRecharge'
- },
- ],
- proxy: {
- '/api-app': {
- target: 'http://api.starbuds.laylib.com',
- changeOrigin: true,
- //pathRewrite: { '^/server': '' },
- },
- '/api-common': {
- target: 'http://api.starbuds.laylib.com',
- changeOrigin: true,
- //pathRewrite: { '^/server': '' },
- },
- },
- plugins: [
- '@alitajs/hd',
- ],
- locale: {
- default: 'zh-CN', //默认语言 zh-CN,如果 baseSeparator 设置为 _,则默认为 zh_CN
- baseNavigator: true, // 为true时,用navigator.language的值作为默认语言
- antd: true, // 是否启用antd的<LocaleProvider />
- baseSeparator: '-', // 语言默认分割符 -
- },
- hd: {
- "theme": {},
- "px2rem": {
- "rootValue": 100,
- "unitPrecision": 5,
- "propWhiteList": [],
- "propBlackList": [],
- "exclude": false,
- "selectorBlackList": [],
- "ignoreIdentifier": false,
- "replace": true,
- "mediaQuery": false,
- "minPixelValue": 0
- }
- },
- outputPath: './vipRecharge',
- hash: true,
- publicPath: '/',
- });
|