title: Overriding the @angular/pwa ngsw-worker.js
body: <p>I'm working on <a href="https://github.com/dhappy/tracker/tree/angular-8" rel="nofollow noreferrer">an app</a> and I would like to integrate with Firebase Messaging. To do so I need to append some code to the <code>ngsw-worker.js</code> generated by <code>@angular/pwa</code> when I build.</p>
  
  <p>I tried creating a <code>ngsw-worker.js</code> in <code>src/</code>, but after running <code>rm -rf dist/ &amp;&amp; ng build --prod</code>, the version in <code>dist/</code> didn't have my changes.</p>