angular-docs-cn/packages/service-worker
George Kalpakas 6c2c95851a fix(service-worker): let `*` match 0 characters in globs (#23339)
In [glob patterns][1], the `*` wildcard is supposed to match 0 or more
characters.

For reference:
- This is also how `*` works in other implementations, such as
  `.gitignore` files or Firebase hosting config.
- Some popular JS implementations (e.g. [minimatch][2], [micromatch][3])
  work differently, matching 1 or more character (but not 0).

This commit "fixes" the minimal glob support in
`@angular/service-worker` to allow `*` to also match 0 characters.

[1]: https://en.wikipedia.org/wiki/Glob_%28programming%29
[2]: https://www.npmjs.com/package/minimatch
[3]: https://www.npmjs.com/package/micromatch

PR Close #23339
2018-04-13 13:13:36 -07:00
..
cli build(service-worker): properly build npm_package with Bazel (#23090) 2018-04-04 10:26:38 -07:00
config fix(service-worker): let `*` match 0 characters in globs (#23339) 2018-04-13 13:13:36 -07:00
src feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
test feat(service-worker): add support for configuring navigations URLs (#23339) 2018-04-13 13:13:36 -07:00
testing feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
worker fix(service-worker): let `*` match 0 characters in globs (#23339) 2018-04-13 13:13:36 -07:00
BUILD.bazel build(service-worker): properly build npm_package with Bazel (#23090) 2018-04-04 10:26:38 -07:00
build.sh feat(service-worker): add helper script which will uninstall SW (#21863) 2018-01-30 11:43:03 -08:00
index.ts fix(aio): add service worker entrypoint to aio build (#19875) 2017-10-23 19:31:42 -04:00
package.json feat: update the package output of build.sh to APF v6 (#22808) 2018-03-18 09:33:51 -07:00
public_api.ts feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
rollup.config.js feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
safety-worker.js feat(service-worker): add helper script which will uninstall SW (#21863) 2018-01-30 11:43:03 -08:00
tsconfig-build.json fix(service-worker): ensure initialised in browser only (#20782) 2017-12-06 06:55:33 -08:00