Nodemon - 忽略除重复的特定子目录之外的所有内容

Nodemon - ignore everything except repeated specific sub directories

提问人:user3075373 提问时间:11/8/2023 更新时间:11/8/2023 访问量:8

问:

如何忽略文件夹中的所有内容,除了嵌套的子目录? 我想忽略文件夹中的所有内容,除了每个带有名称(嵌套等)的文件夹nodemonsrccomponents

所以,应该被忽略,但,不应该被忽略。src/file.jssrc/something/nested/file.jssrc/components/file.jssrc/something/nested/components/file.js

我试过了,但它不起作用。!

{
    "verbose": true,
    "ignore": [
        "vite.config.js.timestamp-*.mjs",
        "node_modules/",
        "src/!(**/components/**)",
        "dist/"
    ],
    "ext": "*"
}
匹配 glob nodemon

评论


答: 暂无答案