Results 1 to 3 of 3

Thread: Sencha CMD 6.5.0 & 6.5.1 Build to Production issues

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

    Default Sencha CMD 6.5.0 & 6.5.1 Build to Production issues

    Issue
    Build Web App for Production produces package not runnable when including 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 ES6 polyfills.

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

    Default

    My Config.js file after build to production produce this file with ES6 polyfills.
    Screen Shot 2017-08-03 at 3.50.45 PM.jpg

    Actualy Config.js file look like this.
    Screen Shot 2017-08-03 at 3.53.16 PM.png

    Is it possible to exclude adding ES6 polyfills to external Config.js?
    This Config.js file is use by operation to configure the app depending on the server it connects to.
    it is fill with ES6 polyfills, it will be difficult to set the configuration.

  3. #3

    Default

    Same issue here, all js files specified in app.json with `includeInBundle: false` contain pollyfiills

Similar Threads

  1. production build issues
    By VolterDev in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 26 Jun 2015, 10:30 PM
  2. Replies: 1
    Last Post: 27 Feb 2014, 6:03 AM
  3. sencha app build testing/production issues
    By gmenuet in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 13 Feb 2013, 6:51 AM
  4. production build issues with Sencha Touch 2
    By lex_won in forum Sencha Touch 2.x: Q&A
    Replies: 7
    Last Post: 9 Oct 2012, 2:15 PM
  5. Replies: 7
    Last Post: 23 Aug 2012, 9:44 AM

Posting Permissions

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