Results 1 to 4 of 4

Thread: Dyanimc package loading not working with build profile

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    137
    Answers
    5

    Default Dyanimc package loading not working with build profile

    There are several build profile in app.json:
    Code:
    "builds": {
        "web": {"default": true},
        "android": {
            "packager": "cordova",
            "cordova" : {
                "config": {
                    "platforms": "android",
                    "id": "com.pushsoft.filedemo"
                }
            }
        }
    }
    When I use 'sencha app build web', all `uses` packages' outputs are in 'build/production/MyApp/web/resources', but package-loader can't load these package, it failed to load the js and css files of these packages.

    111.png

    2222.png

    So is 'sencha app build android/native'.

    Is it a bug of package-loader?

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    137
    Answers
    5

    Default

    I think it's a bug of Ext.getResourcePath(), build profile is not considered

  3. #3
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    882
    Answers
    15

    Default

    any update on this?
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

  4. #4
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    882
    Answers
    15

    Default

    I solved this problem studing how kitchen sink was made.

    in your app.json

    include this in "output" key

    Code:
    "resources": {
      "path": "./${build.id}/resources",
      "images": "./${build.id}/resources/images",
      "shared": "./resources",
      "toolkit": "${toolkit.name}/resources",
      "base": "."
    }
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

Similar Threads

  1. Replies: 3
    Last Post: 6 Oct 2016, 8:28 AM
  2. Replies: 4
    Last Post: 11 May 2015, 9:47 AM
  3. [CLOSED] sencha app build package - not working
    By kostysh in forum Sencha Cmd
    Replies: 6
    Last Post: 9 Oct 2014, 12:30 AM
  4. package build - Error copying embedded provision profile
    By vipul30 in forum Sencha Architect 2.x: Help & Discussions
    Replies: 1
    Last Post: 31 Jan 2013, 2:33 PM
  5. Replies: 1
    Last Post: 14 May 2012, 5:29 PM

Tags for this Thread

Posting Permissions

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