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

再提个自定义合并的ISSUE #36

Open
pulo opened this issue Jun 26, 2014 · 3 comments
Open

再提个自定义合并的ISSUE #36

pulo opened this issue Jun 26, 2014 · 3 comments

Comments

@pulo
Copy link

pulo commented Jun 26, 2014

嘿嘿 真正使用起来 需求有点多 不好意思哈

因为页面有N个,每个页面调用的模板不一样,那如果把所有模板放到一个TEMPLATE.JS里,这个JS显得太大,是否可以提供一种定制方法
如在PACKAGE.JS里
output: {
page1:['模板1','模板2','模板3','模板4'],
page2:['模板1','模板4'],
page3:['模板2','模板4']
}
来自定义各种场景的输出。然后输出的文件为page1.js page2.js page3.js
希望能考虑下此功能,

@aui
Copy link
Owner

aui commented Jun 26, 2014

建议使用 gruntjs 来处理合并,tmodjs 也有 gruntjs 的插件。

另外,如果type为 amd 或 cmd,你可以利用 requirejs 与 seajs 的 gruntjs 插件来完成依赖合并,无需手动配置依赖列表。

@aui aui mentioned this issue Jul 4, 2014
8 tasks
@kokdemo
Copy link

kokdemo commented Aug 14, 2014

遇到了类似的问题,也希望tmod能自带这个功能……

@thethreeonee
Copy link

+1

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

4 participants