angular service worker 配置文件中使用了哪些模式规则作为路径?

What pattern rules are used as paths in angular service worker configuration files?

许多示例或教程使用此配置部分来解释如何配置 Angular service worker:

   {
    "name": "assets",
    "installMode": "lazy",
    "updateMode": "prefetch",
    "resources": {
      "files": [
        "/assets/**"
      ]
    }

但我没能在“文件”数组中找到任何关于字符串通配符的文档。

assets/** 条目上的双星号是什么意思。

那个双符号是什么意思?

在哪里可以找到有关该模式的文档,以便我可以正确使用该模式和其他组合?

其实都是关于“glob”模式的。

"Globs" are the patterns you type when you do stuff like ls .js on the command line, or put build/ in a .gitignore file.

有关使用和快捷方式的文档可以在 github 上的“node-glob”库中找到:

https://github.com/isaacs/node-glob/blob/master/README.md