Results 1 to 3 of 3

Thread: building an empty app include a lot of sencha code

    You found a bug! We've classified it as SDKTOOLS-1304 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2013
    Posts
    21

    Default building an empty app include a lot of sencha code

    Hi,

    We have created an empty application that doesn't use anything specific (not custom packages, not themes, etc.).
    We are using the command "sencha app build" to see what is the result of the build operation, but we discover that the production JS file includes a lot of Ext classes that my application doesn't use (for example: Ext.Button, Ext.Sheet, Ext.Menu, etc).

    We use 'Sencha Cmd v6.0.0.202' and 'Sencha Ext 6.0'.

    Our code is the following:
    Code:
    //CRUDA/app.js
    Ext.application({
        name: 'CRUDA',
        requires: []
    });
    Code:
    /*CRUDA/app.json*/
    {
        "name": "CRUDA",
        "version": "1.0.0.0",
        "indexHtmlPath": "index.html",
        "classpath": [
            "app",
            "${toolkit.name}/src"
        ],
        "overrides": [
            "overrides",
            "${toolkit.name}/overrides"
        ],
        "framework": "ext",
        "toolkit": "modern",
        "theme": "theme-neptune",
        "requires": [
            "font-awesome"
        ],
        "sass": {
            "namespace": "CRUDA",
            "etc": [
                "sass/etc/all.scss",
                "${toolkit.name}/sass/etc/all.scss"
            ],
            "var": [
                "sass/var/all.scss",
                "sass/var",
                "${toolkit.name}/sass/var"
            ],
            "src": [
                "sass/src",
                "${toolkit.name}/sass/src"
            ]
        },
        "js": [{
            "path": "app.js",
            "bundle": true
        }],
        "classic": {
            "js": [{
                "path": "${framework.dir}/build/ext-all-rtl-debug.js"
            }]
        },
        "modern": {
            "js": [{
                "path": "${framework.dir}/build/ext-modern-all-debug.js"
            }]
        },
        "css": [{
            "path": "${build.out.css.path}",
            "bundle": true,
            "exclude": ["fashion"]
        }],
        "loader": {
            "cache": false,
            "cacheParam": "_dc"
        },
        "production": {
            "output": {
                "appCache": {
                    "enable": true,
                    "path": "cache.appcache"
                }
    
    
            },
            "loader": {
                "cache": "${build.timestamp}"
            },
            "cache": {
                "enable": true
            }
        },
        "testing": {},
        "development": {
            "tags": []
        },
        "bootstrap": {
            "base": "${app.dir}",
    
    
            "microloader": "bootstrap.js",
            "css": "bootstrap.css"
        },
        "output": {
            "base": "${workspace.build.dir}/${build.environment}/${app.name}",
            "appCache": {
                "enable": false
            }
        },
        "cache": {
            "enable": false,
            "deltas": true
        },
        "appCache": {
            "cache": [
                "index.html"
            ],
            "network": [
                "*"
            ],
            "fallback": []
        },
        "resource": {
            "paths": [
                "resources",
                "${toolkit.name}/resources"
            ]
        },
        "ignore": [
            "(^|/)CVS(/?$|/.*?$)"
        ],
        "archivePath": "archive",
        "slicer": {
            "js": [{
                "path": "sass/example/custom.js",
                "isWidgetManifest": true
            }],
            "output": {
                "appCache": {
                    "enable": false
                }
            },
            "cache": {
                "enable": false
            }
        },
        "id": "7893ea2e-8775-46b2-93d6-afa55c3244db"
    }
    We attach the code of the application: CRUDA.zip

    Could somebody tell us why it happens and if is possible include only the things that my application uses?

    Thanks!

  2. #2
    Sencha - Support Team keckeroo's Avatar
    Join Date
    Mar 2008
    Location
    Winnipeg, Canada
    Posts
    388

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,339

    Default

    Is this a duplicate bug report?

    https://www.sencha.com/forum/showthread.php?289221

Similar Threads

  1. Replies: 4
    Last Post: 25 Mar 2013, 10:32 AM
  2. How to include a data JSON file when building
    By mmandell70 in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 23 May 2012, 2:19 AM
  3. Video + Code: Building a sample MVC Sencha Touch app
    By mrsunshine in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 3
    Last Post: 17 Jun 2011, 2:05 AM
  4. Include code
    By MCSchlemme in forum Community Discussion
    Replies: 0
    Last Post: 20 May 2011, 5:08 AM
  5. How to include code snippet of javascript in the code written in EXT-GWT?
    By Amulya in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 28 Apr 2009, 11:30 PM

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
  •