Gathering detailed insights and metrics for react-app-rewire-antd-starter-config
Gathering detailed insights and metrics for react-app-rewire-antd-starter-config
Gathering detailed insights and metrics for react-app-rewire-antd-starter-config
Gathering detailed insights and metrics for react-app-rewire-antd-starter-config
A config for using react-app-rewired v2+ with Antd, react-hot-loader, PostCSS and more
npm install react-app-rewire-antd-starter-config
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
22 Commits
1 Watchers
2 Branches
1 Contributors
Updated on Apr 02, 2022
Latest Version
1.0.0
Package Id
react-app-rewire-antd-starter-config@1.0.0
Unpacked Size
4.99 kB
Size
2.41 kB
File Count
5
NPM Version
6.13.1
Node Version
10.17.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
An override-config for using react-app-rewired 2.0+ with Antd, react-hot-loader, PostCSS and more
基于 react-app-rewired 2.0+ 的 antd 项目初始化配置
⚠️ This config can NOT fit the version of create-react-app lower than 2.0
After rewiring a create-react-app project, we have to ovrride much config to meet our customized needs. Painfully, the same work is repeated every time when you initialize a rewired project. Thus, why not importing a ready-to-go config directly?
1 ) Install create-react-app 2.x / 3.x
2 ) Install react-app-rewired 2.x
3 ) Install react-app-rewire-hot-loader
1yarn add -D react-app-rewire-hot-loader 2 3# If you don't already, you also need 4yarn add react-hot-laoder
1yarn add -D react-app-rewire-antd-starter-config
In the config-overrides.js of the root of your project you created for react-app-rewired add this code:
1const rewireDefaultConfig = require('react-app-rewire-antd-starter-config') 2 3module.exports = (config, env) => { 4 // ...other rewires 5 return rewireDefaultConfig(config, env) 6}
E.g.
1// CSS modules without extension 2import * as styles from './example.css' 3 4// import on demand 5import { Button, Table } from 'antd' 6import { cloneDeep, pickBy } from 'lodash' 7// use '@' as root directory 8import Example from '@/Components/Example' 9 10const TestComponent = () => ( 11 <div> 12 <span className={styles.title}>Title</span> 13 /* ... */ 14 </div> 15)
Enjoy coding!
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More