sencha-touchsencha-cmdsencha-cmd5

What's the difference between "bundle" and "includeInBundle" options for Sencha Cmd


In the Sencha Cmd docs it states that there are different options you specify for the compiler when it is handling JavaScript files in app.json.

What is the difference between the "bundle" and "includeInBundle" options?


Solution

  • From the forums:

    Apologies for the delay in response - I recognize this is confusing, here's a quick explanation:

    • only one of your js resources should be marked bundle: true - it tells Sencha Cmd "this is the file to use as the bundle - concatenate anything else that is a part of the build into this file"

    • includeInBundle says "include this file in the bundle via concatenation / minification"

    I hope that clarifies things! There's also some documentation here if you'd like to read more:

    http://docs-origin.sencha.com/cmd/5.x/microloader.html#js