We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
嘿嘿 真正使用起来 需求有点多 不好意思哈
因为页面有N个,每个页面调用的模板不一样,那如果把所有模板放到一个TEMPLATE.JS里,这个JS显得太大,是否可以提供一种定制方法 如在PACKAGE.JS里 output: { page1:['模板1','模板2','模板3','模板4'], page2:['模板1','模板4'], page3:['模板2','模板4'] } 来自定义各种场景的输出。然后输出的文件为page1.js page2.js page3.js 希望能考虑下此功能,
The text was updated successfully, but these errors were encountered:
建议使用 gruntjs 来处理合并,tmodjs 也有 gruntjs 的插件。
另外,如果type为 amd 或 cmd,你可以利用 requirejs 与 seajs 的 gruntjs 插件来完成依赖合并,无需手动配置依赖列表。
type
Sorry, something went wrong.
遇到了类似的问题,也希望tmod能自带这个功能……
+1
No branches or pull requests
嘿嘿 真正使用起来 需求有点多 不好意思哈
因为页面有N个,每个页面调用的模板不一样,那如果把所有模板放到一个TEMPLATE.JS里,这个JS显得太大,是否可以提供一种定制方法
如在PACKAGE.JS里
output: {
page1:['模板1','模板2','模板3','模板4'],
page2:['模板1','模板4'],
page3:['模板2','模板4']
}
来自定义各种场景的输出。然后输出的文件为page1.js page2.js page3.js
希望能考虑下此功能,
The text was updated successfully, but these errors were encountered: