From 86d5472d91b15e92e0b73dd270d365f8035cd192 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Tue, 3 Dec 2019 18:47:21 +0200 Subject: [PATCH] docs(service-worker): fix paths for `ngsw-config` command to match latest CLI (#34215) PR Close #34215 --- aio/content/guide/service-worker-config.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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: