Results 1 to 7 of 7

Thread: Compile to Production Issue

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Singapore
    Posts
    54

    Exclamation Compile to Production Issue

    Issue
    Build Web App for Production produce package not runnable when include an external js resource.
    But if set for Testing, the compile web app works fine.

    I was using SA 4.2.1 with CMD 6.5.0. But just upgrade to SA 4.2.2 with CMD 6.5.1 but produce the same results.

    To reproduce
    1. Create a blank project
    2. Add a panel and button
    3. Add a resource "Config.js" and set requireSdk and disable IncludeInBundle
    Ext.define('MyApp.Config', {
    statics: {
    baseUrl:'http://example.com'
    }
    });
    4. Build Web App for Production

    Observation
    The Config.js file seems to contain the entire EXTJS framework

  2. #2

    Default

    This functionality of SA is fully based on Cmd. You can observe the same behavior when you create and build the app without SA. I do not know if it is bug, but you can ask in Cmd forum to get more info.

  3. #3

    Default

    The production build does not add to your js file whole framework, but only ES6 polyfills.

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Singapore
    Posts
    54

    Default

    Thanks for the info.

    The Config file becomes invalid because of the polyfil. Is there a fix?

  5. #5

    Default

    Could you share more details, please? What does the invalid means?

  6. #6
    Sencha Premium Member
    Join Date
    Sep 2012
    Location
    Singapore
    Posts
    54

    Default

    It is going to be tough to look up at the Config.js file with all the polyfills.
    Screen Shot 2017-08-03 at 3.50.45 PM.jpg
    when my Config.js suppose to a few lines
    Screen Shot 2017-08-03 at 3.53.16 PM.png

    When compile set for testing the Config.js doesn't contain ES6 polyfills.
    The Config.js needs to be visible and easily editable to change the configuration.

  7. #7

    Default

    Could you ask in Cmd forum or support portal if there is possibility to turn off inserting polyfills in production build, please?

Similar Threads

  1. Replies: 0
    Last Post: 17 Dec 2015, 7:02 AM
  2. SASS Compile issue with Cmd 5.0.1.231, 5.0.2.270, and 5.0.3.324
    By Necro-Engineering in forum Sencha Cmd
    Replies: 4
    Last Post: 1 Dec 2014, 12:17 PM
  3. 3.0.1.1343 css compile issue
    By hschaefer123 in forum Sencha Architect 3.x: Bugs
    Replies: 2
    Last Post: 10 Jan 2014, 7:56 AM
  4. TreePicker issue with IE8 Post-Compile
    By existdissolve in forum Ext: Q&A
    Replies: 4
    Last Post: 30 Dec 2013, 12:46 PM

Posting Permissions

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