Skip to content

Instantly share code, notes, and snippets.

@HiroshiHara
Created May 7, 2021 04:23
Show Gist options
  • Save HiroshiHara/0daf75d208e7212368efb2d53cdfff93 to your computer and use it in GitHub Desktop.
Save HiroshiHara/0daf75d208e7212368efb2d53cdfff93 to your computer and use it in GitHub Desktop.
# node.js開発時にソースコード変更を監視し自動で再起動するプラグイン。
# サーバ起動をnodeコマンドの代わりにnodemonを使用する。
# ★インストール
npm install -g nodemon
# ★package.json > npm-scriptsにnodemon用スクリプトを追加(例)
scripts > dev > "nodemon app.js"
# ★起動
npm run dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment