ykit-config-antd
ykit ant-design 配置插件
Last updated 8 years ago by ymfe .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ykit-config-antd 
SYNC missed versions from official npm registry.

ykit-config-antd

该插件已内置 ykit-config-react & ykit-config-es6,不需要单独引入。

Features

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

Usage

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

$ ykit init antd

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

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

$ npm install ykit-config-antd --save

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

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

使用

使用组件需要先手动引入 ant-design 样式。

在工程中的 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

Current Tags

  • 2.3.0                                ...           latest (8 years ago)

14 Versions

  • 2.3.0                                ...           8 years ago
  • 2.2.0                                ...           8 years ago
  • 2.1.0                                ...           8 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.2.2                                ...           9 years ago
  • 1.2.1                                ...           9 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.1.3                                ...           9 years ago
  • 0.1.2                                ...           9 years ago
  • 0.1.1                                ...           9 years ago
  • 0.1.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |