-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ビルドとデプロイ手順の検討をする #9
Comments
ビルド関係は vite.config.ts を調整していく。 まずは何も変更しないでビルドした場合 vite.config.ts #aaaab
index が 1.3MB と大きすぎるので怒られている |
次に以下の設定を追加した場合
ライブラリの分離をしてもらう
あまり変化は見られなかった |
ここでサイズの大きなファイルが何なのか素性を調べるために minify を止めて再度ビルドしてみた。デフォルトではesbuldがminify処理を引き受けている。
結果はこちら。
警告は出なかった。minifyしてる割に大きかったら警告するだけでminifyをオフにしてたらチェックされないのかも。 |
Vite製のアプリケーションにBundle Analyzerを設定する を参考にした。
出力されたファイルのスクリーンショットがこれ おそらく
|
結果、予想通り
|
issues になっているほどデカいらしい。これは仕方ない |
ひとまず #9 (comment) の設定でビルドすることにする。 |
デプロイは
で行く ビルド時の環境変数を読み込むため、repository secrets を用いる。 方法まず firebase のセットアップ(firebase のプロジェクトは作成済みとして) firebase init hosting 途中で GitHub Actions の設定をしてもらう( |
この辺りで導入したのでクローズ |
The text was updated successfully, but these errors were encountered: