Results 1 to 3 of 3

Thread: Change sass variable from command line build

  1. #1
    Sencha Premium Member EPV's Avatar
    Join Date
    Dec 2010
    Location
    Sweden
    Posts
    361

    Default Change sass variable from command line build

    Is it possible to create a build property file which changes a sass variable?

    The purpose is to be able to build different variations of a theme, like:

    Code:
    > sencha app build blueapp
    the properties file / build profile should then change a sass variable, like:

    $myColor = #0000FF;

    Any ideas? Thanks / E

  2. #2
    Sencha - Engineering israelroldan's Avatar
    Join Date
    Nov 2011
    Location
    The Netherlands
    Posts
    395

    Default

    The current way to do this would be to specify different build profiles (e.g.: blueapp, greenapp) each with a different theme (my-theme-blue, my-theme-green). Both themes can extend a common theme and just override the base variables.
    Israel Roldán | Senior Software Engineer (Framework tools)

  3. #3
    Sencha Premium Member EPV's Avatar
    Join Date
    Dec 2010
    Location
    Sweden
    Posts
    361

    Default

    Ok, will try that. Would be really nice with a feature to solve that though

    Thanks / E

Similar Threads

  1. Replies: 0
    Last Post: 13 Sep 2014, 3:04 PM
  2. Replies: 1
    Last Post: 2 Nov 2012, 5:12 AM
  3. Trying to build app with command line tools raises exception
    By cburgdorf in forum Sencha Touch 2.x: Bugs
    Replies: 2
    Last Post: 16 Sep 2012, 11:24 AM
  4. Build sass with Sencha Command
    By EPV in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 20 Mar 2012, 10:35 AM

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
  •