node.jsã«ã¯ãã¡ã¤ã«ç£è¦ãè¡ããAPIãfs.watch()ãããfs.watchFile()ããããã¾ããããªãã ããã ããããããã©ãããã£ãããã¾ãã ãåèãNode.js ã® fs.watch() 㨠fs.watchFile() ã®éã â ã¦ã£ãç ®ããã° ãããã£ãã¡ã³ãã¯ãµã¤é¨åã綺éºã«ã©ãããã¦ãã¡ã¤ã«ç£è¦ãæ軽ã«è¡ããããã«ããã¢ã¸ã¥ã¼ã«ããchokidarãã§ãã ãµã³ãã« ã¹ã¯ãªãããèµ·åããã«ã¬ã³ããã£ã¬ã¯ããª(åãã£ã¬ã¯ããªãå«ã)ãç£è¦ãã¦ããã¡ã¤ã«ã®è¿½å ãåé¤ãç·¨éãªã©ãè¡ããããéç¥ãã¾ãã var chokidar = require('chokidar') var watcher = chokidar.watch('.', { //watch対象ãã£ã¬ã¯ããªorãã¡ã¤ã« ignored: /[/\]./, //ç¡è¦ãã対象 persistent:
{{#tags}}- {{label}}
{{/tags}}