ionic capacitor sync
Sync (copy + update) an Ionic project
$ ionic capacitor sync [platform] [options]
ionic capacitor sync
will do the following:
- Perform an Ionic build, which compiles web assets
- Copy web assets to Capacitor native platform(s)
- Update Capacitor native platform(s) and dependencies
- Install any discovered Capacitor or Cordova plugins
platform
同期するプラットフォーム(例:android
、ios
)。
Options
--no-build
: Do not invoke an Ionic build--prod
: Flag to use theproduction
configuration
Advanced Options
--configuration=<conf>
: Specify the configuration to use (or-c
)--source-map
: Output source maps--watch
: Rebuild when files change