1
我在Windows 7 64bit中使用Sencha SDK工具2 Beta 3和ExtJS 4.0.7。
在我構建我的項目後,app-all.js文件爲未縮小。Sencha SDK工具未縮小app-all.js
這是.JSB3文件(即由煎茶生成):
{
"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": []
}
而且煎茶結果在命令提示:(無差錯)
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
(文件夾沒有文件擴展名)
你是否在''files''裏面得到控制器類,還是隻有'models and controllers'? – Illep
對不起,但我不明白你問什麼。 – Natasha
'app.jsb3'文件是否包含應用程序的'controller'類的定義?在我的文件中,'app.jsb3'文件只包含'models和store'的定義,並沒有定義控制器。 – Illep