Web アプリのビルドファイルと Capacitor の設定ファイルを Native のプラットフォームプロジェクトにコピーします。Web アプリケーションに変更を加えたり、
capacitor.config.json
を変更したりするたびに、これを実行します。
npx cap copy [platform]
Inputs:
platform
(optional):
android
,
ios
Example output:
√ Copying web assets from www to android\app\src\main\assets\public in 2.64s
√ Copying web assets from www to ios/App/public in 450ms
√ Copying native bridge in 7.32ms
√ Copying capacitor.config.json in 3.22ms
√ copy in 2.74s
√ copy in 1.10ms