.umirc.ts 609 Bytes
import { defineConfig } from 'umi';
import pkg from './package.json';
import routes from './src/routes';

export default defineConfig({
  esbuild: {},
  mountElementId: pkg.name,
  webpack5: {
    lazyCompilation: {},
  },
  runtimePublicPath: false,
  nodeModulesTransform: {
    type: 'none',
  },
  history: {
    type: 'hash'
  },
  hash: true,
  title: false,
  lessLoader: {
    globalVars: {
      theme: 'true;@import "~@/variable.less"',
    }
  },
  antd: {
    config: {
    }
  },
  theme: {
    'root-entry-name': 'variable'
  },
  routes,
  fastRefresh: {},
  qiankun: {
    slave: {},
  },
});