-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple libraries #50
Conversation
libraryName 还是要保留。。。内部还有 alipayui 这样的上层库也要用到。 |
alipayui 是怎么用 babel-plugin-antd 的? 引 core.js 自己封装? |
最好这样。 ['antd', [{
libraryName: 'antd',
libraryDirectory: 'lib'
}, {
libraryName: 'antd-mobile',
libraryDirectory: 'lib'
}]] |
alipayui 的项目结构和使用方式和 antd-mobile 是一样的,有通用组件和业务组件要按需使用。 |
lib 目录为什么要可配?
['antd', {
extraLibraries: ['antd-mobile', 'alipayui']
}] |
https://github.com/ant-design/ant-design-mobile/blob/master/site/bisheng.config.js#L43 典型需求就是站点开发的时候支持 components,同时站点引入 |
想了想,还是按你的建议来做配置。 |
已在 #52 实现。 |
支持多个 library,是写死的antd 和 antd-mobile吗?????? |
Close #41
Close ant-design/ant-design-mobile#17
改动:
antd
和antd-mobile
TODO: