mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 18:26:41 +00:00
22 lines
524 B
TypeScript
22 lines
524 B
TypeScript
|
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'),
|
||
|
);
|
||
|
},
|
||
|
});
|