Results 1 to 2 of 2

Thread: [Cmd] Force certain files to be included in build

  1. #1
    Sencha Premium User
    Join Date
    Nov 2012

    Default [Cmd] Force certain files to be included in build

    My application makes heavy use of dynamic Ext.require statements. In other words, there is no explicit Ext.require("my.class.view").

    This means that "my.class.view" is never included in the production build. Is there any way to force all files in a given directory to be included in the build?

    I'd like something like package.classpath except it would guarantee that all files are included in the production build even if nothing explicitly calls Ext.require() for them. Is there something I can include in sencha.cfg or in one of the build scripts to accomplish this?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL


    You can use comments in your javascript file to require classes also. Something like this:

    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:

Posting Permissions

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