我开始使用 gulp,我有点难以理解 glob 在 gulp 中的工作方式。
为什么 **/*
复制所有目录结构(它是如何工作的)
最佳答案
Gulp 使用 glob module .可以找到 globbing 规则 in its repo .
*
Matches 0 or more characters in a single path portion**
If a "globstar" is alone in a path portion, then it matches zero or more directories and subdirectories searching for matches. It does not crawl symlinked directories.
**
表示“通过子目录递归下降”,而 *
表示“匹配任何路径”。
关于javascript - gulp 模式递归如何工作 **/*,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37242778/