Results 1 to 2 of 2

Thread: What is the correct way to use package on demand in MVVM app with multiple themes

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2010
    Location
    Moscow
    Posts
    20

    Exclamation What is the correct way to use package on demand in MVVM app with multiple themes

    Hello!

    We have started to use package on demand feature and I'm faced with some issues. Maybe you can clarify some things for me. I would very appreciate it!

    So, here what we have:

    Our application use MVVM, it has an app folder with Application.js that extends Ext.app.Application - it is a starting point as usual. We have two themes which are packages and extends 'theme-neptune'.

    Recently, I started to move some functionality from app to packages which are
    loaded on demand when user goes to some area of our app. We have some common
    components that used across application as well as base view controller that is
    extended by many other viewControllers.

    When I moved code to a separate package, I couldn't build it because of dependencies error. The files in the package can not extend components from app - got dependencies error when build it. So, I need to move all common components to a separate packages and require them in other packages.

    So, the question is - is that intentional or there some secret options to set-up, to have ability to require or extend components from app folder in the package?

    Another thing. When I build app with --uses, it creates a .css file for each package that includes all css files in the app, so when package is loaded it loads up that huge css, that was already loaded by the app. To avoid that, I was able to put "required": true and "properties": {"skip.sass": 1}, in the package.json but that doesn't look right.


    Could you explain the correct way of using package on demand feature for app with multiple themes. I couldn't find any docs but that base info.

    Thank you very much!

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,005
    Answers
    5

    Default

    Hello there-

    I apologize but I do not have an answer for you. I have shared this with the support team and asked that they reach out to you to provide some assistance at their earliest convenience. Your patience is greatly appreciated!

    Michele

Similar Threads

  1. Replies: 8
    Last Post: 30 Dec 2016, 7:53 AM
  2. Replies: 1
    Last Post: 19 Apr 2016, 11:33 AM
  3. Replies: 3
    Last Post: 22 Sep 2014, 10:24 AM
  4. v0.3: jScout - full-featured javascript/css on-demand package loader
    By SamuraiJack1 in forum Community Discussion
    Replies: 39
    Last Post: 20 Aug 2009, 5:13 AM
  5. v0.3: jScout - full-featured javascript/css on-demand package loader
    By SamuraiJack1 in forum Ext 2.x: User Extensions and Plugins
    Replies: 2
    Last Post: 5 Aug 2008, 12:55 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
  •