Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5040] Building an Appcelerator app takes ages... optimize javascript file

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNot Our Bug
Resolution Date2017-06-20T12:17:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterRaymond Verbruggen
AssigneeShak Hossain
Created2017-06-20T06:28:41.000+0000
Updated2017-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?

Comments

  1. Hans Knöchel 2017-06-20

    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.
  2. Raymond Verbruggen 2017-06-20

    Tried that, but both the common-js module and the library are in the /lib directory... as a result both of them are optimized...
  3. Hans Knöchel 2017-06-20

    I do not mean to place it inside lib, I mean to actually compile a module for the commonjs platform, like our [Ti.OAuth](https://github.com/appcelerator-modules/ti.oauth) module does :-).
  4. Raymond Verbruggen 2017-06-20

    OK thanks Hans! I will dig into that...

JSON Source