Nodemon --ext任何文件类型 [英] Nodemon --ext any file type

查看:108
本文介绍了Nodemon --ext任何文件类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要观看的图像目录.该目录可以具有许多不同的文件类型.我知道您可以指定供nodemon监视的文件类型列表,但是如何告诉nodemon监视目录中的所有文件?我的命令现在看起来像这样:

I have an images directory that I want to watch. The directory can have many different file types. I know you can specify a list of file types for nodemon to watch, but how can I tell nodemon to watch ALL files in a directory? My command looks like this right now:

"watch-images": "nodemon --ignore build/ -e jpg,png --watch images --exec 'cp -a images/ build/images/'"

我可以用来替换jpg,png吗?

What can I use to replace the jpg,png?

推荐答案

使用 nodemon --ext'*'监视所有文件扩展名.它会输出:

Use nodemon --ext '*' to watch for all file extensions. It'll output:

[nodemon] watching extensions: (all)

在此功能请求中提及的内容:

Mentioned in this feature request:

https://github.com/remy/nodemon/issues/915#issuecomment-445905946

这篇关于Nodemon --ext任何文件类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆