Results 1 to 4 of 4

Thread: 6.5.1.240 is not generating/including single app-all.css file.

  1. #1
    Sencha User
    Join Date
    Sep 2015
    Posts
    28
    Vote Rating
    0
      0  

    Default 6.5.1.240 is not generating/including single app-all.css file.

    Hello,

    I have an application which was upgraded from 6.2 to 6.5. Now when I do sencha app watch or sencha app build production it generates 3 css files app-all.css, app-all_1.css, app-all_2.css. When I check them in browser for app watch it includes app-all_1.css and app-all_2.css file not app-all.css file. I am adding link param an id and later I am using Ext.swapStylesheet to change css theme. So I need to use only 1 css.

    I have also tried creating new sample application using 6.5 and it also creates separate file. This works file in 6.2. Is there is any way in 6.5 to generate app-all.css file only and used them in page?

    Thanks,
    Dhaval

  2. #2
    Sencha User
    Join Date
    Oct 2009
    Location
    Tehran
    Posts
    29
    Vote Rating
    0
      0  

    Default

    hello,

    in build.xml add this lines, may be correct.

    Code:
    <project name="AppName" default=".help">
      <import file="${basedir}/.sencha/app/build-impl.xml"/>
    
      <target name="-before-build">
        <property name="app.output.css.split" value="18288"/>
      </target>
    </project>
    if not work use bellow solution :

    in "C:\Users\m.layeghi\bin\Sencha\Cmd\6.5.1.240\ant\build\app\production.properties" add this line.

    Code:
    app.output.css.split=18288
    Telegram Channel : https://t.me/extjs

  3. #3
    Sencha User
    Join Date
    Sep 2015
    Posts
    28
    Vote Rating
    0
      0  

    Default

    Hello mrlayeghi,

    First solution doesn't work. I have added those line but it still splits css file. So I have used second option adding in to production.properties file and its working properly. Do you know any reason why first is not working as it can be project specific settings.

    Thanks,
    Dhaval

  4. #4
    Sencha User
    Join Date
    Sep 2015
    Posts
    28
    Vote Rating
    0
      0  

    Default

    You can add same configuration in app.json file so no need to configure global settings.
    Code:
    "output": {
        "base": "build/",
        "page": "index.html",
        "css": {
            "split": 18288
        },
        "appCache": {
            "enable": false
        }
    },
    Thanks for help mrlayeghi.

Similar Threads

  1. Including js file containing data models into js file
    By senchaUser1234567 in forum Ext 5: Q&A
    Replies: 1
    Last Post: 29 Apr 2016, 4:53 AM
  2. Replies: 1
    Last Post: 28 Jul 2015, 7:57 AM
  3. Error while including ext-all.css file
    By Wolfie in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 2 Jul 2013, 12:19 AM
  4. Including a pdf file in a tab
    By netnutmike in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 26 Jun 2008, 10:23 AM

Posting Permissions

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