title: Ionic 4 run browser failed to load resource
body: <p>I created an easy Ionic 4 sidemenu app called "test" with <code>ionic start test sidemenu --type=angular</code>.</p>
  
  <p>Then, without change anything, I run <code>ionic cordova run browser</code> and automatically it opens the browser and all works and is good.</p>
  
  <p>The problem is if I try to open the <code>/platforms/browser/www/index.html</code> file directly in a browser, then I get a black page and the error <code>failed to load resources</code> for the files: <code>runtime.js, polyfills.js, styles.js, cordova.js, vendor.js, vendor.js</code>.</p>
  
  <p>Same behavior if I run <code>ionic cordova run browser --prod</code>.</p>
  
  <p>With ionic 3 I didn't have errors.</p>
  
  <p>Failed to load resources:</p>
  
  <p><a href="https://i.stack.imgur.com/DXQ7v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DXQ7v.png" alt="enter image description here"></a></p>
  
  <p>My Ionic info is:</p>
  
  <pre><code>Ionic:
  
     ionic (Ionic CLI)             : 4.2.1 (/usr/lib/node_modules/ionic)
     Ionic Framework               : @ionic/angular 4.0.0-beta.13
     @angular-devkit/build-angular : 0.8.6
     @angular-devkit/schematics    : 0.8.6
     @angular/cli                  : 6.2.6
     @ionic/angular-toolkit        : 1.0.0
  
  Cordova:
  
     cordova (Cordova CLI) : 8.0.0
     Cordova Platforms     : browser 5.0.4
     Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 4 other plugins)
  
  System:
  
     Android SDK Tools : 26.1.1 (/home/losciur/Android/Sdk)
     NodeJS            : v8.12.0 (/usr/bin/node)
     npm               : 6.4.1
     OS                : Linux 4.8
  </code></pre>