diff --git a/aio/content/guide/service-worker-config.md b/aio/content/guide/service-worker-config.md index 5d5820df77..367d4929d7 100644 --- a/aio/content/guide/service-worker-config.md +++ b/aio/content/guide/service-worker-config.md @@ -7,16 +7,17 @@ A basic understanding of the following:
-The `src/ngsw-config.json` configuration file specifies which files and data URLs the Angular -service worker should cache and how it should update the cached files and data. The -[Angular CLI](cli) processes the configuration file during `ng build --prod`. Manually, you can process -it with the `ngsw-config` tool: +The `ngsw-config.json` configuration file specifies which files and data URLs the Angular service +worker should cache and how it should update the cached files and data. The [Angular CLI](cli) +processes the configuration file during `ng build --prod`. Manually, you can process it with the +`ngsw-config` tool (where `` is the name of the project being built): -```sh -ngsw-config dist src/ngsw-config.json /base/href -``` + +./node_modules/.bin/ngsw-config ./dist/<project-name> ./ngsw-config.json [/base/href] + -The configuration file uses the JSON format. All file paths must begin with `/`, which is the deployment directory—usually `dist` in CLI projects. +The configuration file uses the JSON format. All file paths must begin with `/`, which corresponds +to the deployment directory—usually `dist/` in CLI projects. {@a glob-patterns} Unless otherwise noted, patterns use a limited glob format: