-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
29 lines (28 loc) · 866 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
27
28
29
import {defineConfig} from 'umi';
export default defineConfig({
npmClient: 'yarn',
exportStatic: {},
cssMinifier: 'esbuild',
cssMinifierOptions: {
minifyWhitespace: true,
minifySyntax: true,
},
proxy: {
"/HPImageArchive.aspx": {
"target": "https://cn.bing.com/",
"changeOrigin": true,
},
"/bing": {
"target": "https://ahsup.top/",
"changeOrigin": true,
}
},
routes: [
{exact: true, path: '/', component: 'index'},
{exact: true, path: '/main.html', component: 'index'},
{exact: true, path: '/docs', component: 'docs'},
{exact: true, path: '/docs.html', component: 'docs'},
{exact: true, path: '/popup', component: 'popup'},
{exact: true, path: '/popup.html', component: 'popup'},
]
});