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?

More than 1 year has passed since last update.

VS CodeでViteのローカルサーバの自動起動を無効化する

Posted at

Viteは超高速で重宝しているのですが、VS CodeでViteプロジェクトを開くと毎回以下のようなスクリプトが走ってローカルサーバが自動起動してしまうのが煩わしかったです。

$ npx vite --port=4000
													17:25:57
  VITE v4.0.4  ready in 550 ms

  ➜  Local:   http://localhost:4000/				17:25:57
  ➜  Network: http://XX.XX.XXX.XX:4000/				17:25:57
  ➜  press h to show help							17:25:57

拡張機能の設定から無効化する

調べてみたところ、これはVS Codeの拡張機能Viteのデフォルト設定によるものだったので1、これを無効化すればOKでした。

  1. VS Codeの設定を開く( macOS: +, Windows: Ctrl+,
  2. viteで検索する
  3. Vite: Auto Startのチェックを外す

Vite: Auto Start

  1. vitejs/vite#7205

0
0
0

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?