We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn add @craco/[email protected]
/* package.json */ "scripts": { - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", + "start": "craco start", + "build": "craco build", + "test": "craco test", }
yarn add craco-less
将index.js文件 antd.css改成 .less
antd.css
.less
- @import '~antd/dist/antd.css'; + @import '~antd/dist/antd.less';
新建craco.config.js文件,重启项目
const CracoLessPlugin = require('craco-less'); module.exports = { plugins: [ { plugin: CracoLessPlugin, options: { lessLoaderOptions: { lessOptions: { modifyVars: { '@primary-color': '#1DA57A' }, javascriptEnabled: true, }, }, }, }, ], };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
1、安装[email protected]
yarn add @craco/[email protected]
2、安装craco-less
将index.js文件
antd.css
改成.less
3、覆盖原有配置
The text was updated successfully, but these errors were encountered: