Skip to content

wont-org/react-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

本地调试

使用 npm link @wont/react-ui 和 npm unlink @wont/react-ui

## 到@wont/react-ui工程下执行
npm link

## 到业务工程下执行
npm link @wont/react-ui

## 取消本地调试执行
npm unlink @wont/react-ui

使用

npm install @wont/react-ui

npm i @wont/react-ui -S

使用babel-plugin-component

npm i babel-plugin-component -D

.babelrc.js

"plugins": [
  [
    "component", {
      "libraryName": "@wont/react-ui",
      "libDir": "lib",
      "style": "index.css"
    }
  ]
]

与 xx 同时使用

"plugins": [
  [
    "component", [
        {
            "libraryName": "xx",
            "style": true
        },
        {
            "libraryName": "@wont/react-ui",
            "libDir": "lib",
            "style": "index.css"
        }
    ]
  ]
]