hunk.code_window:       .filter(fileName => fs.statSync(path.join(pathToCheck, fileName)).isFile());
       if (files.length === 1) {
         return path.join(pathToCheck, files[0]);
       } else if (files.length > 1) {
         throw new SilentError(`Multiple module files found: ${pathToCheck.replace(sourceRoot, '')}`);
       }
       // move to parent directory
       pathToCheck = path.dirname(pathToCheck);
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:       throw new SilentError(`Multiple module files found: ${JSON.stringify(files)}`);
  
hunk.file_path: packages/@angular/cli/utilities/find-parent-module.ts
hunk.type: replace
file: # Proxy To Backend
  
  Using the proxying support in webpack's dev server we can highjack certain urls and send them to a backend server.
  We do this by passing a file to `--proxy-config`
  
  Say we have a server running on `http://localhost:3000/api` and we want all calls to `http://localhost:4200/api` to go to that server.
  
  We create a file next to projects `package.json` called `proxy.conf.json`
  with the content
  
  ```json
  {
    "/api": {
      "target": "http://localhost:3000",
      "secure": false
    }
  }
  ```
  
  You can read more about what options are available here [webpack-dev-server proxy settings](https://webpack.github.io/docs/webpack-dev-server.html#proxy)
  
  and then we edit the `package.json` file's start script to be
  
  ```json
  "start": "ng serve --proxy-config proxy.conf.json",
  ```
  
  now run it with `npm start`
  