1

私は ExtJs 5.1 を使用しています。

"path": "libPath" を使用するだけで、app.json を介していくつかの外部ライブラリをアプリに追加しました。

すべて正常に動作しますが、実行すると

sencha app build production

コマンドは、外部ライブラリも縮小しようとします。Sencha によって縮小された場合、外部ライブラリの一部が Js Exception に移動します。

sencha cmd に対して、extjs コードのみをビルドおよび縮小し、編集せずに外部ライブラリをコピーするようにするにはどうすればよいですか?

私が走れば

sencha app build testing

すべて正常に動作します。

どうもありがとう

4

2 に答える 2

1

配列の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,はあなたのためにトリックを行うかもしれないと思います.

于 2015-06-04T20:58:09.340 に答える