title: How can I use ES6 modules on python http.server?
body: <p>I'm instantiating a module like so in <code>index.html</code>:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
    &lt;head&gt;
      &lt;meta charset=&quot;utf-8&quot;&gt;
      &lt;title&gt;Hello Module&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;script type=&quot;module&quot; src=&quot;./index.js&quot;&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p><code>index.js</code> is empty.</p>
  <p>When I serve this via <code>py -3 -m http.server</code> (Python 3.8.5), I get the Chrome error:</p>
  <pre><code>Failed to load module script: The server responded with a non-JavaScript MIME type of &quot;text/plain&quot;. Strict MIME type checking is enforced for module scripts per HTML spec.
  </code></pre>
  <p>I've read what this error signifies. I do not know how to configure http.server because heretorfore it's been a black box to me. Am I past the point at which Python's default (?) server is helpful?</p>