0.1.1 • Published 5 years ago
@shaking/antd-less v0.1.1
@shaking/antd-less
Make antd support webpack tree-shaking out of the box.
Installation
npm install @shaking/antd-less --save-devNow, You don't need babel-plugin-import to handle antd import anymore.
Usage
Enable webpack@4 tree shaking of ES modules. Add less support to your webpack scaffold. If you already did that, just:
import { Card, Alert } from 'antd';Tips
If you need to support more complex use cases, I still suggest using babel-plugin-import.