{ "id": "84880", "key": "TIMOB-7180", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-26T18:39:39.000+0000", "created": "2012-01-13T14:44:11.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "tbs-future" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:42.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "During a production build, need to strip comments, minify, and only include the CSS that's needed based on the dependencies.", "attachment": [], "flagged": false, "summary": "MobileWeb: Minify, strip comments, and include only necessary CSS in production builds", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "195060", "author": { "name": "warchild", "key": "warchild", "displayName": "Dário Marcelino", "active": true, "timeZone": "Europe/London" }, "body": "Hi, will this be included in 2.1?\r\nIt would be great if Titanium could minify the production build!\r\nMany thanks", "updateAuthor": { "name": "warchild", "key": "warchild", "displayName": "Dário Marcelino", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-16T14:51:26.000+0000", "updated": "2012-05-16T14:51:26.000+0000" }, { "id": "195073", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "We already do the things described in this ticket, but they're sorta hacked into place.\r\n\r\nWe currently use Google Closure compiler for production builds (i.e. publish->package mobile web). This will minify and strip comments in JavaScript code. We don't have much for CSS, but what we do have is currently combined, then minified using some Python library.\r\n\r\nWe are working on a compile-time code processor that will eventually replace Google Closure compiler, provide better minification, target-specific builds, and expose many more configuration variables.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-05-16T15:02:58.000+0000", "updated": "2012-05-16T15:02:58.000+0000" }, { "id": "195082", "author": { "name": "warchild", "key": "warchild", "displayName": "Dário Marcelino", "active": true, "timeZone": "Europe/London" }, "body": "Thanks Chris for taking the time to answer.\r\n\r\nI must be doing something wrong... When I do publish->package mobile web my code is not minified. Actually is quite strange because I get *.js and *.uncompressed.js files but they are exactly the same. I've been using nightly SDKs v2.1.* btw.\r\n\r\nCheers,\r\nDário", "updateAuthor": { "name": "warchild", "key": "warchild", "displayName": "Dário Marcelino", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-16T15:11:30.000+0000", "updated": "2012-05-16T15:11:30.000+0000" }, { "id": "195085", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This ticket is not the appropriate support channel for why minification is not working. You should use the Developer Center Q&A: http://developer.appcelerator.com/questions. To quickly address your results, if you see the uncompressed files, then you are doing a production build properly. If the compressed and uncompressed files are the same, then it was unable to compress the file probably due to a syntax issue. There could be something else going on too, not sure.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-05-16T15:18:22.000+0000", "updated": "2012-05-16T15:18:22.000+0000" }, { "id": "422762", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking ticket as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T18:39:39.000+0000", "updated": "2017-06-26T18:39:39.000+0000" }, { "id": "436479", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:42.000+0000", "updated": "2018-04-04T23:20:42.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }