1 Star 0 Fork 0

wb/react-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config-overrides.js 511 Bytes
一键复制 编辑 原始数据 按行查看 历史
wb 提交于 2022-04-28 08:19 . 优化
const {override, fixBabelImports, addLessLoader} = require('customize-cra');
module.exports = override(
// 针对antd实现按需打包: 根据import来打包(使用babel-plugin-import)
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es',
style: 'css', // 自动打包相关的样式
}),
// 使用less-loader对源码中的less的变量进行重新指定
// addLessLoader({
// javascriptEnabled: true,
// modifyVars: {'@primary-color': '#1DA57A'},
// }),
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangbo2/react-app.git
[email protected]:wangbo2/react-app.git
wangbo2
react-app
react-app
master

搜索帮助