1 Star 0 Fork 10

JacobGuan/tkey-management-frontend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.umirc.ts 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
cdk8s-harvestmoon 提交于 2019-09-04 22:25 . fix: 修改配置文件
import { IConfig } from 'umi-types';
import routes from './config/router.config';
import plugins from './config/plugins.config';
import theme from './config/theme.config';
let constant = require('./src/constants/globalConstant');
/**
* 部署相关参数可以参看:https://umijs.org/zh/guide/deploy.htm
*/
const config: IConfig = {
treeShaking: true,
targets: {
ie: 11,
},
disableCSSModules: true,
lessLoaderOptions: {
javascriptEnabled: true,
},
plugins,
routes,
theme,
ignoreMomentLocale: true,
define: constant.constant.devConstant,
proxy: {
[constant.constant.devConstant['process.env.API_SERVER']]: {
target: 'http://management.cdk8s.com:9095',
pathRewrite: { [`^/${constant.constant.devConstant['process.env.API_SERVER']}`]: '' },
changeOrigin: true,
},
},
chainWebpack: function(config: any, { webpack }: any) {
config.merge({
optimization: {
minimize: true,
splitChunks: {
chunks: 'all',
minSize: 30000,
minChunks: 3,
automaticNameDelimiter: '.',
cacheGroups: {
vendor: {
name: 'vendors',
test({ resource }: any) {
return /[\\/]node_modules[\\/]/.test(resource);
},
priority: 10,
},
},
},
},
});
},
};
export default config;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jacob/tkey-management-frontend.git
git@gitee.com:jacob/tkey-management-frontend.git
jacob
tkey-management-frontend
tkey-management-frontend
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385