feat: init
This commit is contained in:
		@@ -1,13 +1,10 @@
 | 
			
		||||
import { defineConfig } from 'umi';
 | 
			
		||||
 | 
			
		||||
import routes from './routes'
 | 
			
		||||
export default defineConfig({
 | 
			
		||||
  nodeModulesTransform: {
 | 
			
		||||
    type: 'none', // all 慢 兼容好
 | 
			
		||||
  },
 | 
			
		||||
  routes: [
 | 
			
		||||
    { path: '/', component: '@/pages/index' },
 | 
			
		||||
    { path: '/about', component: '@/pages/about' },
 | 
			
		||||
  ],
 | 
			
		||||
  routes,
 | 
			
		||||
  fastRefresh: {},
 | 
			
		||||
  history: {
 | 
			
		||||
    type: 'browser'
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								config/routes.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								config/routes.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
export default [
 | 
			
		||||
  { path: '/', component: '@/pages/index' },
 | 
			
		||||
  { path: '/about', component: '@/pages/about' },
 | 
			
		||||
]
 | 
			
		||||
		Reference in New Issue
	
	Block a user