我在Windows 7 64位中使用Sencha SDK工具 2 Beta 3 和ExtJS 4.0.7。
构建项目后, app-all.js 文件未缩小。
这是 .JSB3 文件(由Sencha生成):
{
"projectName": "Project Name",
"licenseText": "Copyright(c) 2012 Company Name",
"builds": [
{
"name": "All Classes",
"target": "all-classes.js",
"options": {
"debug": true
},
"files": [
// All Classes
]
},
{
"name": "Application - Production",
"target": "app-all.js",
"compress": true,
"files": [
{
"path": "",
"name": "all-classes.js"
},
{
"path": "",
"name": "app.js"
}
]
}
],
"resources": []
}
在命令提示符中和Sencha 结果 :(没有错误)
Loaded 2 Builds
Creating the "All Classes" target as "all-classes.js"
- 256 file(s) included in this target.
+ // All Classes
* Parse all-classes.js with options:
- debug: true
- debugLevel: 1
Creating the "Application - Production" target as "app-all.js"
- 2 file(s) included in this target.
+ all-classes.js
+ app.js
* Parse app-all.js with options:
- debug: false
- debugLevel: 1
* Compress and obfuscate app-all.js...
Copy resources...
Done building!
FUI:我的文件有Unicode字符。
先谢谢你。
更新:(文件夹结构,简化)
MyApp
- app
-- controller
--- mycontroller.js
-- model
--- mymodel.js
-- store
--- mystore.js
-- view
--- myview.js
- ext
- app.js
- index.html
(文件夹没有文件扩展名)
答案 0 :(得分:1)
这是一个内部错误 我在我的JS文件中用'float'替换了 float ,现在它可以正常工作。