1
5

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 5 years have passed since last update.

Nuxtでホットリロードの切り替えについて

Posted at

Nuxtのインストール時に作成されるpackage.jsonのscripts部分にあるコマンドのうち、

  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "nuxt generate",
    "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
    "precommit": "npm run lint"
  },

上記のdevコマンド、つまりnuxtコマンドがホットリロードが有効になる。

逆にstart(nuxt start)コマンドはプロダクションモードでの起動のため、ホットリロードは無効になっている。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?