Search code examples
extjssencha-cmdextjs6

extjs 6 build concatenating into 1 file


I have generated my app in extjs 6 through sencha cmd. While doing sencha app build, all my js files get concatenated into 1 file(app.js). I want to keep my js folder structure like before to help me in debugging and putting breakpoints. Is there a way we can do that?


Solution

  • You should do your debugging before you do build. Doing a build is really just that, "compiling" all the js into a single file.

    In some cases you need to debug the build code itself, in those cases you can turn of YUI compression, so that you can use break points etc. Then just use the "testing" parameter:

    sencha app build testing
    

    Then, locate your build in build/testing in stead of build/production. There is also a sencha app build development but it's really just for helpful for building/updating the css bootstrap, and your're better of using sencha app watch for that (since it's constantly monitors and updates if needed)