{ "id": "175821", "key": "AC-6633", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2020-11-20T16:58:38.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-21T19:15:53.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "*Problem*\r\nCurrently an app.tss file is compiled into every \"/android/alloy/styles/\" style and increases it's file size and has redundant code.\r\n\r\n*Example*\r\nE.g. if you have a very large app.tss (1MB) and 5 controllers with no style you'll end up with five 1MB files (= 5MB total) instead of one 1MB and five empty files (= 1MB total).\r\n\r\n*Idea:*\r\nControllers use require to include alloy or other controllers already. Why not create a /Resources/android/alloy/styles/app.js file and include that file in the other compiled styled file and merge it to their style.", "attachment": [], "flagged": false, "summary": "Reduce compiled TSS file size", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "457663", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've already tried to edit https://github.com/appcelerator/alloy/blob/1b9fd4685f0a6abebe1620b021c1d360523f9e8b/Alloy/commands/compile/index.js#L673 and I'm able to write a appTss.js file. I just have trouble including it in the other style files. Tried it with require but it doesn't seem to work here", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-11-20T16:59:49.000+0000", "updated": "2020-11-20T16:59:49.000+0000" }, { "id": "457673", "author": { "name": "maccesar", "key": "maccesar", "displayName": "Cesar Estrada", "active": true, "timeZone": "America/Chicago" }, "body": "This also affects iOS Apps.\n\n\"/Resources/iphone/alloy/styles/style-files-from-all-views\"", "updateAuthor": { "name": "maccesar", "key": "maccesar", "displayName": "Cesar Estrada", "active": true, "timeZone": "America/Chicago" }, "created": "2020-11-21T19:15:53.000+0000", "updated": "2020-11-21T19:15:53.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }