Results 1 to 4 of 4

Thread: Sencha app build Missing CSS files

  1. #1
    Sencha Premium Member ethraza's Avatar
    Join Date
    Jun 2007
    Location
    Brazil
    Posts
    378

    Question Answered: Sencha app build Missing CSS files

    Today I migrated an app from ExtJs 5.1 (crisp) to 6.0 (triton).

    While I'm using sencha app watch and sencha build development everything is ok. But when I issue a build testing or build production it does not create the resources/MyApp-all.css.

    Copying the resources/MyApp-all.css file from development makes my app work right.

    What is going wrong with that builds?


    Thanks.
    LAMPE (Linux / Apache / MySQL / PHP / ExtJs)

  2. Hi,

    Add file path in app.json ,
    /* resources to be copied along when build */
    "css": [ {
    "path": "${build.out.css.path}",
    "bundle": true
    },{

    "path":"resources/MyApp-all.css "
    }
    ],


    or else copy the all css styles into sass/src/view/main/Main.scss /* automatically it creates appname-all.css in resources */

    Thanks,

  3. #2
    Sencha User
    Join Date
    Aug 2015
    Location
    Vijayawada
    Posts
    47
    Answers
    2

    Default

    Hi,

    Add file path in app.json ,
    /* resources to be copied along when build */
    "css": [ {
    "path": "${build.out.css.path}",
    "bundle": true
    },{

    "path":"resources/MyApp-all.css "
    }
    ],


    or else copy the all css styles into sass/src/view/main/Main.scss /* automatically it creates appname-all.css in resources */

    Thanks,

  4. #3
    Sencha Premium Member ethraza's Avatar
    Join Date
    Jun 2007
    Location
    Brazil
    Posts
    378

    Default

    Hi.
    Adding just the first part of your example seens to solve the problem.

    app.json:
    Code:
    "css": [
        {
            "path": "${build.out.css.path}",
            "bundle": true
        },
            {
                "path": "bootstrap.css",
                "bootstrap": true
            },
            {
                 "path":"main.css"
            }
        ],
    Thank you.
    LAMPE (Linux / Apache / MySQL / PHP / ExtJs)

  5. #4

    Default

    Quote Originally Posted by ethraza View Post
    Hi.
    Adding just the first part of your example seens to solve the problem.

    app.json:
    Code:
    "css": [
        {
            "path": "${build.out.css.path}",
            "bundle": true
        },
            {
                "path": "bootstrap.css",
                "bootstrap": true
            },
            {
                 "path":"main.css"
            }
        ],
    Thank you.

    I still can't get it to work with above change. The `myapp-all.css` is never generated, nor there is any error on console. I am using Mac OSX Sierra and Sencha 6.0.

    Please suggest.

Similar Threads

  1. Missing delta files in production build?
    By parky128 in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 11 Sep 2014, 2:36 AM
  2. Missing Images, files, and Tabs on build
    By offirgolan in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 17 Jun 2013, 2:22 PM
  3. missing view files in app.js after sencha build
    By istanczyk in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 19 Jul 2012, 12:31 AM
  4. [ BUILD ] production and missing files
    By Tchinkatchuk in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 30 May 2012, 5:50 AM
  5. Replies: 1
    Last Post: 25 May 2012, 1:37 PM

Posting Permissions

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