Code Monkey home page Code Monkey logo

ykit-config-antd's Introduction

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

ykit-config-antd's People

Contributors

yuhaoju avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.