[AC-5040] Building an Appcelerator app takes ages... optimize javascript file
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Not Our Bug |
Resolution Date | 2017-06-20T12:17:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Raymond Verbruggen |
Assignee | Shak Hossain |
Created | 2017-06-20T06:28:41.000+0000 |
Updated | 2017-06-20T12:25:42.000+0000 |
Description
When using a large javascript file in /lib/ it takes around 10 minutes to get the iOS simulator running.
The file present is math.min.js which is around 475kB.
How can I exclude this file being optimized?
All Javascript files are encrypted to ensure security. You could build a common-js module that accesses this library, then it would be minified and pre-compiled during module build, not app build.
Tried that, but both the common-js module and the library are in the /lib directory... as a result both of them are optimized...
I do not mean to place it inside
lib
, I mean to actually compile a module for thecommonjs
platform, like our [Ti.OAuth](https://github.com/appcelerator-modules/ti.oauth) module does :-).OK thanks Hans! I will dig into that...