* feat: remove unnecessary 'loading' fields from other files * feat: layout the knowledge list page * feat: modify the page switching button in the header
32 lines
710 B
TypeScript
32 lines
710 B
TypeScript
import { defineConfig } from 'umi';
|
|
import routes from './src/routes';
|
|
|
|
export default defineConfig({
|
|
outputPath: 'dist',
|
|
// alias: { '@': './src' },
|
|
npmClient: 'npm',
|
|
base: '/',
|
|
routes,
|
|
publicPath: '/web/dist/',
|
|
esbuildMinifyIIFE: true,
|
|
icons: {},
|
|
hash: true,
|
|
history: {
|
|
type: 'browser',
|
|
},
|
|
plugins: ['@react-dev-inspector/umi4-plugin', '@umijs/plugins/dist/dva'],
|
|
dva: {},
|
|
lessLoader: {
|
|
modifyVars: {
|
|
hack: `true; @import "~@/less/variable.less";`,
|
|
},
|
|
},
|
|
// proxy: {
|
|
// '/v1': {
|
|
// 'target': 'http://54.80.112.79:9380/',
|
|
// 'changeOrigin': true,
|
|
// 'pathRewrite': { '^/v1': '/v1' },
|
|
// },
|
|
// },
|
|
});
|