使用 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
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"
}
]
]
]