File size: 862 Bytes
04aba1b 15052fd 04aba1b 6b8fc2c 15052fd 6b8fc2c 04aba1b 440a37a fad2ec7 04aba1b 6b8fc2c f30b544 84f80c5 6b8fc2c c4f7231 6b8fc2c 04aba1b 6b8fc2c 84f80c5 af3ef26 405c9f9 af3ef26 bbbfe3a 15052fd 7ebb7e8 1a0fce6 7ebb7e8 1a0fce6 7ebb7e8 6b8fc2c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
import { defineConfig } from 'umi';
import { appName } from './src/conf.json';
import routes from './src/routes';
export default defineConfig({
title: appName,
outputPath: 'dist',
// alias: { '@': './src' },
npmClient: 'npm',
base: '/',
routes,
publicPath: '/',
esbuildMinifyIIFE: true,
icons: {},
hash: true,
favicons: ['/logo.svg'],
clickToComponent: {},
history: {
type: 'browser',
},
plugins: ['@react-dev-inspector/umi4-plugin', '@umijs/plugins/dist/dva'],
dva: {},
lessLoader: {
modifyVars: {
hack: `true; @import "~@/less/index.less";`,
},
},
devtool: 'source-map',
copy: ['src/conf.json'],
proxy: {
'/v1': {
target: '',
changeOrigin: true,
ws: true,
logger: console,
// pathRewrite: { '^/v1': '/v1' },
},
},
});
|