$ ionic cordova prepare

Copies assets to Cordova platforms, preparing them for native builds

Synopsis

$ ionic cordova prepare [<platform>]

Details

ionic cordova prepare will do the following:

  • Copy the www/ directory into your Cordova platforms.
  • Transform config.xml into platform-specific manifest files.
  • Copy icons and splash screens from resources/ to into your Cordova platforms.
  • Copy plugin files into specified platforms.

You may wish to use ionic cordova prepare if you run your project with Android Studio or Xcode.

Input Description
platform The platform you would like to prepare (android, ios)
Option Description
--no-build Do not invoke an Ionic build
--prod Build the application for production
--aot Perform ahead-of-time compilation for this build
--minifyjs Minify JS for this build
--minifycss Minify CSS for this build
--optimizejs Perform JS optimizations for this build

Examples

$ ionic cordova prepare 
$ ionic cordova prepare ios
$ ionic cordova prepare android

API

Native

General