nativescript-dev-webpack
nativescript-dev-webpack copied to clipboard
Webpack both Android and iOS simutaneously
CLI is able to execute tns run
without a platform which will build and deploy to both platforms and execute LiveSync for each of them.
This is currently not possible with --bundle
. There are multiple ideas about how to go about this.
- Launch two separate
webpack
processes one for each platform. The issue with this approach would be that eachwebpack
process would watch the same files - this could lead to potential problems. - Launch one
webpack
process that handles both platforms.
Both approaches have the issue of when to stop the webpack
process for a particular platform. For example the user has one android and one iOS device, launches tns run --bundle
and later on disconnects the iOS device - webpack
would need to know and stop bundling for the iOS platform.
This could be done by adding an event handler for livesyncStopped
or by some other approach.