Code Monkey home page Code Monkey logo

antd-mobile-web's Introduction

[Experience] - Ant design mobile web entry

antd-mobile web only. Don't worry .web.js suffix issues.

npm i --save-dev antd-mobile-web

Or

yarn add -D antd-mobile-web

Usage

Setup .babelrc

{
    "presets": [
        "antd-mobile-web/babel"
    ]
}

Setup webpack.config.js

module.exports = {
    module: {
        rules: [
            amwWebpack.createSvgRule()
        ]
    }
}

Work in progress: Dont forget setup style-loader and css-loader in your webpack config

Import components

import { Button } from 'antd-mobile-web'

Why?

Because Cannot resolve module 'react-native'

antd-mobile is a React Native first library. For web. You need import '.web.js'. Official introduce show you how to package by special webpack config. But it's not friendly in test env or editor.

How it work

Script generate file trees sync from antd-mobile/lib. And point to antd-mobile/lib/${comp}/index.web.

TODO

  • Support style

Acknowledgements

This project is a shell base on antd-mobile. Which product by Ant Design team.

antd-mobile-web's People

Contributors

cncolder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

royderks

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.