0.0.0-beta.2 • Published 2 years ago
@cjy0208/mobile-components-router5 v0.0.0-beta.2
Router5 Components
基于 react-router v5 的移动端组件库,主要实现路由动画功能
安装
yarn add @cjy0208/mobile-components-router5
# 或者
npm install @cjy0208/mobile-components-router5 --save
按需加载
配合 babel-plugin-import 实现按需加载
// babel.config.js
module.exports = {
plugins: [
[
'babel-plugin-import',
{
libraryName: '@cjy0208/mobile-components-router5',
libraryDirectory: 'es/exports', // or 'es/exports'
camel2DashComponentName: false,
style: (name) => `${name}/style.less`, // or `${name}/style.css`
},
'@cjy0208/mobile-components-router5',
],
],
}
0.0.0-beta.2
2 years ago