forked from liyupi/sql-father-frontend-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
26 lines (25 loc) · 784 Bytes
/
.umirc.ts
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
import { defineConfig } from '@umijs/max';
import MonacoEditorWebpackPlugin from 'monaco-editor-webpack-plugin';
import routes from './src/configs/routes';
export default defineConfig({
antd: {},
access: {},
model: {},
initialState: {},
request: {},
layout: {},
// @ts-ignore
mock: false,
routes,
npmClient: 'yarn',
// https://umijs.org/zh-CN/guide/boost-compile-speed#monaco-editor-%E7%BC%96%E8%BE%91%E5%99%A8%E6%89%93%E5%8C%85
// @ts-ignore
chainWebpack: (memo: any) => {
// 更多配置 https://github.com/Microsoft/monaco-editor-webpack-plugin#options
memo.plugin('monaco-editor-webpack-plugin').use(MonacoEditorWebpackPlugin, [
// 按需配置
{ languages: ['sql', 'json', 'java', 'typescript'] },
]);
return memo;
},
});