Results 1 to 3 of 3

Thread: Theme overrides are not included in development mode on secha app refresh

  1. #1
    Sencha User Wedgybo's Avatar
    Join Date
    Jul 2011
    Location
    Edinburgh, Scotland
    Posts
    17
    Vote Rating
    12
      0  

    Default Theme overrides are not included in development mode on secha app refresh

    Hi there,

    I've followed through on the documentation found here for producing themes in 4.2 using Cmd 3.1.0. http://docs.sencha.com/ext-js/4-2/#!/guide/theming

    According to the documentation. You should be able to update the development version [workspace]/[app]/index.html with these overrides using 'sencha app refresh'.

    I think there may be a step missing, either that or I have done something wrong. I had to add in

    <script src="../packages/[theme]/build/[theme].js"></script>

    To my index.html file so that my overrides work when building my application. Is this the correct way to do this? or am I doing something wrong?

    Cheers,
    Jamie

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,554
    Vote Rating
    1272
      0  

    Default

    Think you have to do a build to get the CSS updated for dev mode
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2014
    Posts
    18
    Vote Rating
    0
      0  

    Default Only available from build/xxx directory

    Quote Originally Posted by mitchellsimoens View Post
    Think you have to do a build to get the CSS updated for dev mode
    It looks like even after doing a build, the CSS is only updated if you run the actual build in the browser (ie: [project]/build/build_name/index.html). But running the app from the root folder of the application ([project]/index.html), the theme is not applied. This is different from a Touch application built with CMD, which does have the CSS from the build available when the index.html is loaded from the application root.

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
  •