LoginSignup
2
1

More than 3 years have passed since last update.

Vue.jsプロジェクトのセットアップ

Last updated at Posted at 2020-03-14

Vue.jsのプロジェクトを最初から作る手順を紹介します。

前提条件

  • npm、yarnがインストール済みであること

@vue/cliのインストール

グローバルに@vue/cliをインストールしてvueコマンドを使用できるようにします。

$ npm install -g @vue/cli

vueプロジェクトの作成

$ vue create project-name
? Please pick a preset: (Use arrow keys)
❯ default (babel, eslint) 
  Manually select features 

開発環境の起動

$ yarn serve

起動後、ブラウザからhttp://localhost:8080/で表示できます。

production用build

$ yarn build

成功すると、distディレクトリにファイルが作られます。

2
1
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
2
1