Results 1 to 4 of 4

Thread: EXTJS 6.5.3 app seems to be downloading all classes (10+MB) instead of just used ones

  1. #1
    Sencha Premium Member
    Join Date
    Dec 2010
    Posts
    14

    Default EXTJS 6.5.3 app seems to be downloading all classes (10+MB) instead of just used ones

    This is probably due to something I'm doing wrong, but I'm running sencha app build production (have tried with and without production), but it doesn't seem to generate all-classes.js. My "ext" directory within my application's directory contains 140MB of files, and my ${ext.dir} directory contains 20MB. I don't see any all-classes.js when searching any of the directories within my application. When I run my application in the browser I see it downloading all sorts of JS files that I'm not using, like SegmentedButton.js etc. Am I doing something wrong, or how do I get it to just download the classes required to run my app?

  2. #2

    Default

    The bundle gets created for testing and production builds. You will find them at /build/production/YourProject/classic/app.js and /build/testing/YourProject/classic/app.js

    Take a look at app.json were you have configured to bundle all in that file:

    Code:
        "js": [
            {
                "path": "app.js",
                "bundle": true
            }
        ],

  3. #3
    Sencha Premium Member
    Join Date
    Dec 2010
    Posts
    14

    Default

    Yes I do see that config in app.json, but I'm not sure I understand what you're saying? Are you saying bundle should be false to cause CMD to only include the required files, or is there an alternative to production/testing builds where only the required files will be included?

  4. #4

    Default

    Quote Originally Posted by a344254 View Post
    Yes I do see that config in app.json, but I'm not sure I understand what you're saying? Are you saying bundle should be false to cause CMD to only include the required files, or is there an alternative to production/testing builds where only the required files will be included?
    Sorry for my bad explanation :S
    "bundle" must be true.

    I add here a link to your other post with the same topic: https://www.sencha.com/forum/showthr...not-using-them

Similar Threads

  1. Sencha CMD 5.1 keeps downloading ExtJS 6
    By SpidersWeb in forum Ext 5: Q&A
    Replies: 2
    Last Post: 22 Apr 2016, 12:47 PM
  2. Extjs 4 downloading a file through ajax call
    By softwareplay in forum Ext: Q&A
    Replies: 2
    Last Post: 12 Dec 2013, 10:32 AM
  3. Replies: 7
    Last Post: 16 Oct 2011, 10:55 PM
  4. Help needed in downloading the Latest EXTJS TLD Version 3.X
    By lokeshk14 in forum Community Discussion
    Replies: 1
    Last Post: 22 Jun 2011, 4:24 AM
  5. Problem with downloading FusionCharts classes
    By kuzi in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 20 Aug 2008, 9:11 AM

Tags for this Thread

Posting Permissions

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