Nodemon - exclusion of files

后端 未结 3 421
梦谈多话
梦谈多话 2020-12-08 18:25

I would like to exclude some specific files from monitoring of NodeMon. How can I do this?

My existing configuration:

nodemon: {
      all: {
                


        
3条回答
  •  情话喂你
    2020-12-08 18:45

    You can add nodemon configuration within package.json file For example:

    {
      "name": "nlabel",
      "version": "0.0.1",
       // other regular stuff
    
    
      "nodemonConfig": {
        "ignore": ["public/data/*.json", "public/javascripts/*.js"]
      },
    
    
      "author": "@sziraqui",
      "license": "GPL-3.0"
    }
    

    The key must be "nodemonConfig". Ignore rules can be specified as array of globs or complete filenames

    More info: https://github.com/remy/nodemon#packagejson

提交回复
热议问题