Javascript ExtJs还可以缩小外部库

Javascript ExtJs还可以缩小外部库,javascript,extjs,extjs5,sencha-cmd5,Javascript,Extjs,Extjs5,Sencha Cmd5,我正在使用ExtJS5.1 我通过app.json向应用程序添加了一些外部库,只需使用“path”:“libPath” 一切都很好,但当我跑的时候 sencha app build production cmd还尝试缩小外部库。如果被Sencha缩小,我的一些外部库将进入Js异常 我怎么能告诉sencha cmd只构建和缩小extjs代码并复制外部库而不进行编辑 如果我跑 sencha app build testing 一切正常 非常感谢查看app.json关于js数组的评论: /

我正在使用ExtJS5.1

我通过app.json向应用程序添加了一些外部库,只需使用“path”:“libPath”

一切都很好,但当我跑的时候

sencha app build production
cmd还尝试缩小外部库。如果被Sencha缩小,我的一些外部库将进入Js异常

我怎么能告诉sencha cmd只构建和缩小extjs代码并复制外部库而不进行编辑

如果我跑

sencha app build testing
一切正常


非常感谢

查看
app.json
关于
js
数组的评论:

    /**
 * List of all JavaScript assets in the right execution order.
 *
 * Each item is an object with the following format:
 *
 *      {
 *          // Path to file. If the file is local this must be a relative path from
 *          // this app.json file.
 *          //
 *          "path": "path/to/script.js",   // REQUIRED
 *
 *          // Set to true on one file to indicate that it should become the container
 *          // for the concatenated classes.
 *          //
 *          "bundle": false,    // OPTIONAL
 *
 *          // Set to true to include this file in the concatenated classes.
 *          //
 *          "includeInBundle": false,  // OPTIONAL
 *
 *          // Specify as true if this file is remote and should not be copied into the
 *          // build folder. Defaults to false for a local file which will be copied.
 *          //
 *          "remote": false,    // OPTIONAL
 *
 *          // If not specified, this file will only be loaded once, and cached inside
 *          // localStorage until this value is changed. You can specify:
 *          //
 *          //   - "delta" to enable over-the-air delta update for this file
 *          //   - "full" means full update will be made when this file changes
 *          //
 *          "update": "",        // OPTIONAL
 *
 *          // A value of true indicates that is a development mode only dependency.
 *          // These files will not be copied into the build directory or referenced
 *          // in the generate app.json manifest for the micro loader.
 *          //
 *          "bootstrap": false   // OPTIONAL
 *      }
 *
 */
"js": [
    {
        "path": "app.js",
        "bundle": true
    }
],

我认为
“includeInBundle”:false,
可能会对您起作用。

您是否已将外部库放在应用程序的资源文件夹中?这通常只是按原样包括在内