1. #1
    Sencha Premium Member
    Join Date
    Jul 2014
    Location
    Freiburg, Germany
    Posts
    165
    Vote Rating
    11
    anton.stepan will become famous soon enough

      0  

    Default Build Production breaks MyApp-all.css

    Hi,

    I don't know why, and I don't know how to debug this, but our "sencha app build production" inserts a strange class into the "MyApp-all.css" with the effect, that the @import statements are not working anymore.

    MyApp-all.css should look like this:
    HTML Code:
    @import 'MyApp-all_01.css';
    @import 'MyApp-all_02.css';
    But with app build production, it looks like this:
    HTML Code:
    .a4187f9160da857cf698db3c102c8b302d78a3ed{display:block;}@import 'MyApp-all_01.css';@import 'MyApp-all_02.css';
    As we all know, the @import statement must precede all other statements.
    Here, that strange css class is inserted in front, which results in the application not importing those two css classes.
    (I have to remove that css class after each build)

    Looking forward for any suggestions.


    Best regards,
    anton

  2. #2
    Sencha Premium Member
    Join Date
    Jul 2014
    Location
    Freiburg, Germany
    Posts
    165
    Vote Rating
    11
    anton.stepan will become famous soon enough

      0  

    Default

    Additional information:

    That weird long string is always equal to the version of the theme:

    in build/MyApp/production/app.json
    Code:
    "css":[{
      "path":"resources/MyApp-all.css",
      "version":"94ccc02b00e38edd4840fa7c65985e4ecf351e41"}]
    in build/MyApp/production/resources/MyApp-all.css
    Code:
    .94ccc02b00e38edd4840fa7c65985e4ecf351e41{display:block;}@import 'MyApp-all_01.css';@import 'MyApp-all_02.css';

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2014
    Location
    Freiburg, Germany
    Posts
    165
    Vote Rating
    11
    anton.stepan will become famous soon enough

      0  

    Default

    push, as this is really annoying.

  4. #4
    Sencha Premium Member
    Join Date
    Jul 2014
    Location
    Freiburg, Germany
    Posts
    165
    Vote Rating
    11
    anton.stepan will become famous soon enough

      0  

    Default

    Fixed with cmd 6.0

Similar Threads

  1. Replies: 5
    Last Post: 22 Feb 2014, 9:21 AM
  2. Build in Production Mode Breaks Core Features and Layout
    By udvikling@wpamobile.com in forum Sencha Cmd
    Replies: 3
    Last Post: 4 Nov 2013, 11:17 PM
  3. Leaflet library breaks on production build
    By tschortsch in forum Sencha Cmd
    Replies: 4
    Last Post: 28 Sep 2013, 6:58 AM
  4. Replies: 1
    Last Post: 6 Mar 2013, 8:02 AM
  5. Replies: 7
    Last Post: 23 Aug 2012, 9:44 AM