-
-
Notifications
You must be signed in to change notification settings - Fork 197
Combine JavaScript files in a single file in release builds #489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This could be somehow related to the transpilers support #493 |
Maybe we can work with @mishoo and use the excellent Uglify.js lib? |
The problem seems to come from how page.xml code behind is managed. So the limitation is how to tell page.xml where to get navigatedTo for example. For now, I'm unable to use this kind of folder structure in my app:
this could solve my problem too. |
This can probably negativly reflect on how you debug and/or/when get error reports from production apps |
Source Maps, Source Maps everywhere... We need to support these for obfuscators, transpilers etc. XML code-behind will be interesting, source maps won't handle that easily. They map the location in the generated JavaScript to the original source, however for the XMLs we will need a mapping that works the other way around. |
This is now possible with https://github.com/NativeScript/nativescript-dev-webpack |
Further things to research:
|
Debugging issues:
Encryption issues:
Other issues:
Running webpack with core NativeScript apps:
|
This should be resolved by nativescript-dev-webpack. |
On iPhone 5 about 50ms of 980ms of the startup time of the Cuteness sample (and similar on Android) is spent for requiring JavaScript modules.
This could be reduced if we combine (and optionally minify) all used JavaScript modules in release build.
The text was updated successfully, but these errors were encountered: