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?

WSL2環境のnpmでファイル監視したい場合はnodemon使え

Last updated at Posted at 2024-12-15

nodemon

$ npm install nodemon --save-dev
$ nodemon -L --watch 監視したいフォルダ --ext 監視したいファイルの拡張子(CSV) --exec \"実行するnpmコマンド\"
package.json
{
  "name": "myproject",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build": "nodejs build.js",
    "watch": "nodemon -L --watch src --ext js,css,html --exec \"npm run build\""
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "nodemon": "^3.1.9"
  }
}
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?