我有一个我想观看的图像目录。该目录可以有许多不同的文件类型。我知道您可以指定nodemon要监视的文件类型列表,但是如何告诉nodemon监视目录中的所有文件?我的命令现在看起来像这样:
"watch-images": "nodemon --ignore build/ -e jpg,png --watch images --exec 'cp -a images/ build/images/'"
我可以用什么来替换jpg、png?
Use nodemon --ext '*'
监视所有文件扩展名。它会输出:
[nodemon] watching extensions: (all)
此功能请求中提到:
https://github.com/remy/nodemon/issues/915#issuecomment-445905946 https://github.com/remy/nodemon/issues/915#issuecomment-445905946
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)