title: Vite.js not emitting HTML files in multi page app
body: <p>I have a multi page app that I'm trying to build with <code>Vite.js</code> (migrating from <code>Webpack</code>). When building the Vite + React example code I see that it emits:</p>
  <ul>
  <li><code>dist/index.html</code></li>
  <li><code>dist/assets/&lt;various assets&gt;</code></li>
  </ul>
  <p>However, when I try to make a multi page app as shown <a href="https://vitejs.dev/guide/build.html#multi-page-app" rel="nofollow noreferrer">in the docs</a> none of the HTMLs are emitted (but the rest of the content of <code>/assets/</code> is there). Why is this?</p>
  <pre class="lang-js prettyprint-override"><code>// vite.config.js excerpt:
  import { defineConfig } from 'vite'
  import { dirname } from 'path';
  import { fileURLToPath } from 'url';
  
  export default defineConfig({
    root: 'client',
    build: {
      outDir: 'dist',
      rollupOptions: {
        input: {
          main: dirname(fileURLToPath(import.meta.url + 'index.html')),
          login: dirname(fileURLToPath(import.meta.url + 'login.html')),
        }
      }
    },
  });
  </code></pre>