1

我在 Windows 7 64 位中使用 Sencha SDK Tools 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

(文件夹没有文件扩展名)

4

1 回答 1

1

这是关于内部错误的。
我已经在我的 JS 文件中用“float”替换了float,现在它可以工作了。

于 2012-06-18T15:09:35.470 回答