Results 1 to 4 of 4

Thread: Building Extjs APP for Minificatoin

  1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    10
    Vote Rating
    0
      0  

    Default Building Extjs APP for Minificatoin

    Hi ,

    I have project structure where small-small module is like an extjs app, under parent App , none of these module app have extjs lib folder. The extjs folder is present in the parent directory parallel to module apps.
    Each module app is a maven project and also the extjs folder is also a maven project. We have some custom files in extjs folder for our business requirements.



    When user logins into the application the are menu items and when user clicks a menu item, the corresponding app will loaded in a iframe under a tab.Each menu is individual app, this app is render in center panel emdeded with iframe.

    Now we need to minfiy the files . May I know how to do this. I am attaching the Parent directory and child module screenshots. PFA.

    Folder tree structure.

    |->Parent Directory
    |->(extjs) folder
    |->(module1)app1
    |-app
    |-build
    |-sass
    |-WebContent
    app.js
    app.json
    workspace.json
    index.html
    bootstrap.json
    bootstarp.js
    app.html
    ...
    ...
    |->(module2)app2
    | [same structure as app1]
    |->(module3)app3
    | [same structure as app1]
    |->(module4)app4
    | [same structure as app1]
    |->(module5)app5
    | [same structure as app1]
    Attached Images Attached Images

  2. #2
    Ext Team Member
    Join Date
    Sep 2017
    Posts
    675
    Answers
    3
    Vote Rating
    -319
      0  

    Default

    Thank you for reaching out for assistance. I have sent this request over to the support team. They will look into this and get back with you at their earliest convenience!

    Thanks,

    Michele

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    10
    Vote Rating
    0
      0  

    Default

    Hi Michele,

    May I know if any solution found for this?

    Thanks,
    Harsha.

  4. #4
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    117
    Answers
    2
    Vote Rating
    -147
      0  

    Default

    Hello Harsha,

    /**
    * 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": "${framework.dir}/build/ext-modern-all-debug.js"
    },
    {
    "path": "app.js",
    "bundle": true
    }, {
    // This can be the way to include the folder in the minification
    "path": "path of the folder",
    "bundle": false,
    "includeInBundle": true
    }
    ],

    Also, please refer to the below link.

    https://docs.sencha.com/cmd/6.6.0/gu...croloader.html

    Regards,
    Kumar
    Sencha Support.

Similar Threads

  1. Building extjs app in git with Cmd
    By VredevoogdA in forum Sencha Cmd
    Replies: 1
    Last Post: 26 Jan 2016, 12:35 PM
  2. Building extjs
    By tomlobato in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 18 Jan 2009, 12:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •