title: How to use Ionic 4 CSS and JS without CDN in a static website?
body: <p>How to include Ionic 4's CSS and JS in a static website without using CDN url’s?</p>
  
  <p>When we tried to download the JS file to local and refer it as <code>&lt;script type='text/javascript' src="ionic.js"&gt;&lt;/script&gt;</code> , the page loads “Empty” with an error in Chrome dev console. The same works if we refer it from CDN.</p>
  
  <p>Downloaded the js file from <a href="https://unpkg.com/@ionic/core@4.0.0/dist/ionic.js" rel="noreferrer">https://unpkg.com/@ionic/core@4.0.0/dist/ionic.js</a></p>
  
  <p><a href="https://i.stack.imgur.com/MtuAI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MtuAI.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;!-- &lt;script src="https://unpkg.com/@ionic/core@4.0.0/dist/ionic.js"&gt;&lt;/script&gt; --&gt;
      &lt;script type='text/javascript' src="ionic.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" href="https://unpkg.com/@ionic/core@4.0.0/css/ionic.bundle.css"&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;ion-title&gt;Sample Title&lt;/ion-title&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>