Reinit project

This commit is contained in:
Limo Saplf
2019-08-31 20:44:15 +08:00
commit b51ae824c7
115 changed files with 20955 additions and 0 deletions

43
.umirc.ts Normal file
View File

@@ -0,0 +1,43 @@
import { IConfig } from 'umi-types';
const isDev = process.env.NODE_ENV === 'development';
// ref: https://umijs.org/config/
const config: IConfig = {
history: isDev ? undefined : 'hash',
hash: true,
publicPath: './',
treeShaking: true,
theme: {
'primary-color': '#3A3A38',
},
plugins: [
// ref: https://umijs.org/plugin/umi-plugin-react.html
['umi-plugin-react', {
antd: true,
dva: true,
dynamicImport: {
webpackChunkName: true,
loadingComponent: './components/PageLoading/index',
},
title: 'fiv',
dll: true,
locale: {
enable: true,
baseNavigator: true,
default: 'en-US',
},
routes: {
exclude: [
/models\//,
/services\//,
/model\.(t|j)sx?$/,
/service\.(t|j)sx?$/,
/components\//,
],
},
}],
],
}
export default config;