2024-01-29 19:28:39 +08:00
|
|
|
import { defineConfig } from 'umi';
|
|
|
|
|
import routes from './src/routes';
|
2024-01-17 09:37:01 +08:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
outputPath: 'dist',
|
|
|
|
|
// alias: { '@': './src' },
|
|
|
|
|
npmClient: 'npm',
|
|
|
|
|
base: '/',
|
2024-01-29 19:28:39 +08:00
|
|
|
routes,
|
2024-02-28 17:36:44 +08:00
|
|
|
publicPath: '/',
|
2024-01-18 18:27:38 +08:00
|
|
|
esbuildMinifyIIFE: true,
|
2024-01-29 19:28:39 +08:00
|
|
|
icons: {},
|
2024-01-17 09:37:01 +08:00
|
|
|
hash: true,
|
|
|
|
|
history: {
|
2024-01-19 10:45:37 +08:00
|
|
|
type: 'browser',
|
2024-01-17 09:37:01 +08:00
|
|
|
},
|
2024-01-29 19:28:39 +08:00
|
|
|
plugins: ['@react-dev-inspector/umi4-plugin', '@umijs/plugins/dist/dva'],
|
2024-01-17 09:37:01 +08:00
|
|
|
dva: {},
|
2024-01-31 19:29:57 +08:00
|
|
|
lessLoader: {
|
|
|
|
|
modifyVars: {
|
2024-03-05 19:28:44 +08:00
|
|
|
hack: `true; @import "~@/less/index.less";`,
|
2024-01-31 19:29:57 +08:00
|
|
|
},
|
|
|
|
|
},
|
2024-02-29 10:00:45 +08:00
|
|
|
proxy: {
|
|
|
|
|
'/v1': {
|
|
|
|
|
target: 'http://123.60.95.134:9380/',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
// pathRewrite: { '^/v1': '/v1' },
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-01-17 09:37:01 +08:00
|
|
|
});
|