LoginSignup
0
0

More than 1 year has passed since last update.

「Vite」を使用してVueプロジェクトを立ち上げる

Posted at

Viteとは

Vue CLIと同様、プロジェクトの生成、試験サーバーによる実行、ビルドなどが行え、Vue CLIに比べて動作が早く快適に作業ができる。

プロジェクトを作成する

npm init vite-app プロジェクト名
cd プロジェクト名
npm install

プロジェクトを実行する

npm run dev

これで内蔵サーバーを使ってプロジェクトが実行される。
起動したら http://localhost:3000/ にアクセスすると、立ち上げたプロジェクトが表示される。

image.png

プロジェクトをビルドする

npm run build

これで「dist」フォルダに公開されるファイル類が書き出される。

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