schema.d.ts 685 B

1234567891011121314151617
  1. /**
  2. * Adds a service worker to your project. Service workers enable your application to work
  3. * offline or on low-quality networks by caching assets and intercepting network requests.
  4. * This schematic configures your project to use a service worker.
  5. */
  6. export type Schema = {
  7. /**
  8. * The name of the project to add the service worker to. If not specified, the CLI will
  9. * determine the project from the current directory.
  10. */
  11. project: string;
  12. /**
  13. * The build target to apply the service worker to. This is typically `build`, indicating
  14. * that the service worker should be generated during the standard build process.
  15. */
  16. target?: string;
  17. };