1 Star 0 Fork 50

SRX / bigfans-cloud-front

forked from dafanshu / bigfans-cloud-front 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config-overrides.js 570 Bytes
一键复制 编辑 原始数据 按行查看 历史
dafanshu 提交于 2018-03-15 08:40 . up
const {injectBabelPlugin} = require('react-app-rewired');
const path = require('path');
module.exports = function override(config, env) {
// do stuff with the webpack config...
config = injectBabelPlugin(['import', {libraryName: 'antd', libraryDirectory: 'es', style: 'css'}], config);
// 配置路径别名
config.resolve.alias['components'] = path.resolve(__dirname, 'src/components')
config.resolve.alias['pages'] = path.resolve(__dirname, 'src/pages')
config.resolve.alias['utils'] = path.resolve(__dirname, 'src/utils')
return config;
};
JavaScript
1
https://gitee.com/GetOver/bigfans-cloud-front.git
git@gitee.com:GetOver/bigfans-cloud-front.git
GetOver
bigfans-cloud-front
bigfans-cloud-front
master

搜索帮助