Open beiduo opened 9 years ago
我使用的是windows 7系统的git shell。
一开始,package.json文件原本是(直接拷贝的test目录的)
{ "name": "template", "version": "1.0.1", "dependencies": { "tmodjs": "1.0.1-rc9" }, "tmodjs-config": { "output": "./build", "charset": "utf-8", "syntax": "simple", "helpers": null, "escape": true, "compress": true, "type": "default", "runtime": "template.js", "combo": true, "minify": true, "cache": false } }
然后我运行
tmod ./tpl --output ./build --type amd
之后,package.json就自动变成了
{ "name": "template", "version": "1.0.1", "dependencies": { "tmodjs": "1.0.1" }, "tmodjs-config": { "output": "../build", "charset": "utf-8", "syntax": "simple", "helpers": null, "escape": true, "compress": true, "type": "amd", "runtime": "template.js", "alias": null, "minify": true, "cache": false } }
combo: true 被去掉了,其他设置也有所修改。
于是也未能得到合并过的文件。
不知道是哪个步骤出错了……~
啊,我试了下使用default这个type后可以合并,应该是这样。thanks!
我使用的是windows 7系统的git shell。
一开始,package.json文件原本是(直接拷贝的test目录的)
然后我运行
之后,package.json就自动变成了
combo: true 被去掉了,其他设置也有所修改。
于是也未能得到合并过的文件。
不知道是哪个步骤出错了……~