MIME type issue in Angular : <p>I am getting the following error when I try to load my home page and the page is blank.</p>

<pre><code>main-es2015.5ff489631e1a2300adb7.js:1 Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

runtime-es2015.2c9dcf60c8e0a8889c30.js:1 Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

vendor-es2015.02ac05cd7eee1cf62f5a.js:1 Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
</code></pre>

<p>This was working before and it is working correctly in dev while serving using <code>ng serve</code>. The issue happens when the code is running from server. When I checked from the devtools, it is showing the <code>content-type</code> and <code>text/html</code> instead of <code>application/javascript</code>. How this can be fixed ? There is something needs to be set from the server ?</p>
