title: The URL to Web Worker script is not found with Angular 7+
body: <p>I´m testing Web Workers and combining them with Angular 7+</p>
  
  <p>This is my app.component.html</p>
  
  <pre><code>&lt;div&gt;
    &lt;input type="text" name="lat" placeholder="Latitude" #lat (input)="updateMap( lat )"&gt;
    &lt;input type="text" name="lng" placeholder="Longitude" #lng (input)="updateMap( lng )"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is my app.component.ts</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
  })
  export class AppComponent implements OnInit {
    title = 'mapa';
    coords: any = {lat: 0, lng: 0};
    worker: Worker;
  
    ngOnInit() {
        this.worker = new Worker( './app.component.worker.js' );
    }
  
    updateMap( selector: any ) {
      const key   = selector.getAttribute('name');
      const value = Number(selector.value);
      this.coords[ key ] = value;
  
      this.worker.postMessage( this.coords );
    }
  }
  </code></pre>
  
  <p>This is my Webworker definition app.component.worker.js</p>
  
  <pre><code>onmessage = ( e ) =&gt; {
      console.log( e );
  };
  </code></pre>
  
  <p>All the files are at the same level.</p>
  
  <pre><code>project
   -e2e
   -node_modules
   -src
     -app
       -app-routing.module.ts
       -app.component.css
       -app.component.html
       -app.component.ts
       -app.component.worker.js
     -lot of files
   -lot of files
  </code></pre>
  
  <p>When the local server runs, appears this message</p>
  
  <blockquote>
    <p>GET <a href="http://localhost:4200/app.component.worker.js" rel="nofollow noreferrer">http://localhost:4200/app.component.worker.js</a> 404 (Not Found)</p>
  </blockquote>
  
  <p>I tried to set as relative path</p>
  
  <pre><code>'./src/app/app.component.worker.js'
  </code></pre>
  
  <p>But stills not working</p>
  
  <p>What is wrong with my code?
  Does exists a best way to do all with Typescript?</p>