antd-react-scripts

Configuration and scripts for Create React App and antd.

Usage no npm install needed!

<script type="module">
  import antdReactScripts from 'https://cdn.skypack.dev/antd-react-scripts';
</script>

README

React scripts based on react scripts for Ant Design

  • Add eslint, less related configuration
  • Add an alias for the src folder to @
  • Add support for babel-plugin-import
  • Add support for custom themes, just add antd.theme.js in the project root directory, Ant Design Less variables

Example for antd.theme.js

module.exports = {
    'primary-color': '#1DA57A',
    'link-color': '#1DA57A',
}

Instructions

create-react-app <project name> --scripts-version antd-react-scripts