Results 1 to 4 of 4

Thread: Production build package/resources CSS has 0 bytes

  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    631

    Default Production build package/resources CSS has 0 bytes

    This is with Sencha Cmd 6.1.2.15 and Ext JS 6.0.2. I have a package MyPkg which has resources/icons/style.css. When I do "sencha app build development" it copies the file to build\development\MyApp\modern\resources\MyPkg\icons and is 2KB in size which is correct. When I do "sencha app build production" it copies it to build\production\MyApp\modern\resources\MyPkg\icons but is 0KB in size. My microloader downloads it in production but the app has issues because the CSS file is empty.

    My app.json has this in it.

    Code:
        "css": [        {
                // this entry uses an ant variable that is the calculated
                // value of the generated output css file for the app,
                // defined in .sencha/app/defaults.properties
                "path": "${build.out.css.path}",
                "bundle": true,
                "exclude": ["fashion"]
            },
            {
                "path": "${build.out.css.dir}/MyPkg/icons/style.css"
            }
    Attached is workspace that demos the problem. You'll need to add ext framework to it.
    Attached Files Attached Files

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Omaha, NE
    Posts
    631

    Default

    Still a problem with the latest Sencha Cmd.

  3. #3
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    900

    Default

    Alson having this problem with 6.2.2.36. Any workaround? Why this?
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

  4. #4
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goiânia - GO, Brazil
    Posts
    900

    Default

    There is a known issue and opened bug (#SDKTOOLS-1454) for this. The workaround is to use a relative path instead of ${build.out.css.dir} variable

    Try this

    Code:
    {
    "path": "../yourpath/resources/css/style.css"
    }
    Hope this can help someone.
    Wemerson Januario @JanuarioCoder
    Novanti Tecnologia, Sencha MVP/ Ext JS Consultant
    ____________________________________________
    Hire me on UpWork:

    GitHub
    https://github.com/wemersonjanuario

    Treinamento e Consultoria Ext JS. QUALIFIQUE-SE JÁ!

Similar Threads

  1. [OPEN] Copying additional resources (img/font folders) to production build
    By JackJohnsonX in forum Sencha Cmd
    Replies: 3
    Last Post: 6 Apr 2016, 7:44 AM
  2. Replies: 1
    Last Post: 23 Mar 2015, 10:57 AM
  3. build production act differently than build package in wp8.1
    By lovelyhibabe in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 16 Jun 2014, 4:36 PM
  4. Replies: 0
    Last Post: 9 Apr 2014, 10:38 AM
  5. Including resources in production build
    By rocketlaura in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 30 Apr 2012, 10:41 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
  •