Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

gallery 处理问题 #12

Open
yiminghe opened this Issue · 2 comments

3 participants

@yiminghe

gallery/a 依赖 gallery/b

应用代码依赖 gallery/a

build 时两种策略

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

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

@nanqiu

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.