2.3.0 • Published 6 years ago

ykit-config-antd v2.3.0

Weekly downloads
129
License
MIT
Repository
github
Last release
6 years ago

ykit-config-antd

Features

  • 编译 ES6+, JSX 代码
  • 通过 happypack 提升编译速度
  • 内置 ant-design & react

Usage

如果是新项目,在一个空的目录下执行:

$ ykit init antd

会在当前目录下生成一个初始工程。

如果是已有项目,在项目中执行:

$ npm install ykit-config-antd --save

编辑 ykit.js,引入插件即可:

module.exports = {
    plugins: ['antd']
    // ...
};

使用

在工程中的 style.css(style.scss/style.less) 中添加:

@import '~antd/dist/antd.css';

使用组件:

import { DatePicker } from 'antd';
ReactDOM.render(<DatePicker />, mountNode);

示例

查看:https://github.com/roscoe054/ykit-starter-antd

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago