id | title |
---|---|
cli |
CLI Commands |
This creates webpack.haul.js
file in your project directory which is required by Haul
to function. The file contains the app's entry point used for creating the app bundle.
See Configuration for more details on webpack.haul.js
.
This starts a webpack development server which will package and serve the JavaScript bundle for your React Native app.
Example: haul start --platform ios --dev false --minify true --port 3030
You can specify following parameters to configure the server:
Required parameter which configures the server to build the bundle for the specified platform. all
will build the bundle for both android
and ios
and is slower.
Whether to build in development mode, which sets the global __DEV__
variable to true
, and process.env.NODE_ENV
to development
. true
by default.
Whether to minify the bundle while serving. This will make the bundling process slow due to extra minification step, and is false
by default.
Port on which the server should run. defaults to 8081
.
Path to the webpack haul config. defaults to webpack.haul.js
.
This generates the app bundle and assets for packaging the app.
Example: haul bundle --platform android --bundle-output build/index.bundle --assets-dest build/assets
You can specify following parameters to configure the bundle generation:
The platform to build the bundle for.
Whether to build in development mode. This is false
by default.
Whether to minify the bundle while serving. This is true
by default when you are building in production mode.
Path to use for the bundle file. e.g. - build/index.android.bundle
.
Path to the directory to store the assets. e.g. - build/assets
.
Path to the webpack haul config. defaults to webpack.haul.js
.