0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Capacitor で作ったアプリを実機デバッグでホットリロードしたい

Posted at

忘れないうちにメモ
npm run devでLAN内アクセスができる(safariからアクセスできる)状態であることを確認する viteなら vite dev --hostが必要 ←重要1
capacitor.config.jsにserver.host と server.clearなんちゃらを追加
index.htmlが指定するjsのエントリポイントを http://なんかLAN内のアドレス/ でパスが通るようにする ←死ぬほど重要

これでなんと実機上でのデバッグ実行でもWebの部分だけならホットリロードができる
やったぜ

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?