hunk.code_window:         is not installed. Run \`npm install --save-dev @angular/service-worker\`
           and try again, or run \`ng set apps.0.serviceWorker=false\` in your .angular-cli.json.
         `);
       }
       // Path to the worker script itself.
       const workerPath = path.resolve(swModule, 'bundles/worker-basic.min.js');
       // Path to a small script to register a service worker.
       const registerPath = path.resolve(swModule, 'build/assets/register-basic.min.js');
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:     // Read the version of @angular/service-worker and throw if it doesn't match the
       // expected version.
       const allowedVersion = '>= 1.0.0-beta.5 < 2.0.0';
       const swPackageJson = fs.readFileSync(`${swModule}/package.json`).toString();
       const swVersion = JSON.parse(swPackageJson)['version'];
       if (!semver.satisfies(swVersion, allowedVersion)) {
         throw new Error(stripIndent`
           The installed version of @angular/service-worker is ${swVersion}. This version of the CLI
           requires the @angular/service-worker version to satisfy ${allowedVersion}. Please upgrade
           your service worker version.
         `);
       }
  
hunk.file_path: packages/@angular/cli/models/webpack-configs/production.ts
hunk.type: add
file: export class StaticAssetPlugin {
  
    constructor(private name: string, private contents: string) {}
  
    apply(compiler: any): void {
      compiler.plugin('emit', (compilation: any, cb: Function) => {
        compilation.assets[this.name] = {
          size: () => this.contents.length,
          source: () => this.contents,
        };
        cb();
      });
    }
  }
  