Vuexでproductionモードを使用可能にし、productionモードで起動する方法を案内 #2135
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
内容
Vuexのstrictモードでコマンドが積み重なるとだんだん重くなってきます。
環境をビルド時に近づけられるよう、productionモードを検知できるようにしました。
ついでに起動する方法をREADMEで案内するようにしました。
その他
NODE_ENVとモードが別々にあるっぽみ。
https://ja.vitejs.dev/guide/env-and-mode#node-env-%E3%81%A8%E3%83%A2%E3%83%BC%E3%83%88%E3%82%99
これでビルド時、
--mode production
指定時両方でstrictじゃなくなります。(今まではビルド時のみstrictじゃなくなってた)