addseed-ux-admin/.umirc.ts

44 lines
816 B
TypeScript

import { defineConfig } from '@umijs/max';
export default defineConfig({
antd: {},
access: {},
model: {},
initialState: {},
request: {},
layout: false,
dva: {},
valtio: {},
// history: { type: 'hash' },
plugins: [require.resolve('@umijs/plugins/dist/unocss')],
unocss: {
watch: ['src/**/*.tsx'],
},
extraPostCSSPlugins: [
require('tailwindcss')({
config: './tailwind.config.ts',
}),
],
routes: [
{
path: '/login',
component: 'Login',
layout: false,
},
{
path: '/',
id: 0,
component: '@/layouts/index',
redirect: '/home',
routes: [],
},
{
name: '订单详情',
path: '/OrderDetails/:id',
component: 'Order/OrderDetails',
hideInMenu: true,
},
],
npmClient: 'pnpm',
});