forked from Taichi-Network/eth-gasnow-extention
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.umirc.js
39 lines (36 loc) · 767 Bytes
/
.umirc.js
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
const path = require('path');
// ref: https://umijs.org/config/
const { REACT_ENV } = process.env;
export default {
treeShaking: true,
define: {
"process.env.REACT_ENV": REACT_ENV,
},
plugins: [
// ref: https://umijs.org/plugin/umi-plugin-react.html
['umi-plugin-react', {
antd: true,
dva: false,
dynamicImport: {
webpackChunkName: true,
level: 1
},
title: 'extensions',
dll: false,
routes: {
exclude: [
/components\//,
],
},
// chunks: ['vendors', 'umi']
}],
],
// externals: {
// 'react': 'window.React',
// 'react-dom': 'window.ReactDOM',
// },
outputPath: 'app',
alias: {
'@': path.resolve(__dirname, './src'),
},
}