Skip to content
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

gallery 处理问题 #12

Open
yiminghe opened this issue Feb 25, 2014 · 2 comments
Open

gallery 处理问题 #12

yiminghe opened this issue Feb 25, 2014 · 2 comments

Comments

@yiminghe
Copy link

gallery/a 依赖 gallery/b

应用代码依赖 gallery/a

build 时两种策略

  1. 动态拉取 gallery/a 合并到业务代码,并分析 gallery/a 把他的依赖 gallery/b 也合进去
  2. 动态拉取 gallery/a 的代码获取依赖,生成 gallery/a 的 map 表合到业务 map 表中
@minghe
Copy link

minghe commented Feb 26, 2014

还有种思路:gallery组件build的时候生成map js到build目录下,发布掉。业务项目,grunt构建时grunt-kmc发现require gallery/a,就去找gallery/a下的map文件,把map信息合并到业务map中。

@nanqiu
Copy link

nanqiu commented Feb 26, 2014

赞,一直想要这个功能。小平姐姐的方式不错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants