nocobase/packages/app/.umirc.ts

22 lines
524 B
TypeScript
Raw Normal View History

2022-02-10 10:37:16 +00:00
import { resolve } from 'path';
import { defineConfig } from 'umi';
process.env.MFSU_AD = 'none';
export default defineConfig({
nodeModulesTransform: {
type: 'none',
},
routes: [{ path: '/', exact: false, component: '@/pages/index' }],
// fastRefresh: {},
chainWebpack(config) {
config.module.rules
.get('ts-in-node_modules')
.include.add(resolve(__dirname, '../client/src'));
config.resolve.alias.set(
'@nocobase/client',
resolve(__dirname, '../client/src'),
);
},
});