tachybase_todo/packages/create-nocobase-app/templates/AppGenerator/.umirc.ts

37 lines
761 B
TypeScript
Raw Normal View History

import { defineConfig } from 'umi';
import dotenv from 'dotenv';
import path from 'path';
import { getUmiConfig } from '@nocobase/utils';
dotenv.config({
2021-10-07 17:24:31 +08:00
path: path.resolve(__dirname, './.env'),
});
const umiConfig = getUmiConfig();
2021-10-31 09:44:52 +08:00
process.env.MFSU_AD = 'none';
export default defineConfig({
2021-10-21 11:25:40 +08:00
favicon: '/favicon.png',
nodeModulesTransform: {
type: 'none',
},
define: {
...umiConfig.define,
},
// only proxy when using `umi dev`
// if the assets are built, will not proxy
proxy: {
...umiConfig.proxy,
},
2021-10-21 11:25:40 +08:00
routes: [{ path: '/', exact: false, component: '@/pages/index' }],
fastRefresh: {},
locale: {
default: 'zh-CN',
// antd: false,
// title: false,
baseNavigator: false,
baseSeparator: '-',
},
});