codefree_ant
v0.0.2
Published
### Reason for Fork: To avoid style classes conflict with codefree host apps also using antd lib
Readme
codefree_ant
Reason for Fork: To avoid style classes conflict with codefree host apps also using antd lib
NOTES on keeping Fork UpToDate:
- make sure upstream is set using
git remote add upstream [email protected]:ant-design/ant-design.git - make sure your on local
masterbranch of this fork git fetch upstreamgit rebase upstream/master(this will move my forked changes(renamed@ant-prefix& package name inpackage.jsontocodefree_ant) to top of history tree)
NOTES on publishing new version of codefree_ant to npm after fork update:
- make sure
nodeversion is>=11.4usenvm - run
npm i - update the version in
package.json - run
rimraf package-lock.json - run
npm run pub -f
NOTES on usage of this forked lib in SPA
- make sure
npmversion is>=6.9.0 - run
npm i --save antd@npm:codefree_ant - import
import { ConfigProvider } from 'antd'in the root container of SPA - Wrap root return with ConfigProvider (which will add custom prefix(
codefree_ant, matches@ant-prefix) to all antd components classes)<ConfigProvider prefixCls="codefree_ant"> <RootContainer {...this.props} /> </ConfigProvider> - if importing
antdcss styles then add@import '~antd/dist/codefree_ant.css';in main rootcssfile.
