title: Bundle JS and CSS into single file with Vite
body: <p>I'm having a devil of a time figuring out how to build a single .js file from Vite in my Svelte project that includes all of the built javascript and CSS from my Svelte projects.  By default, Vite bundles the app into one html file (this is ok), two .js files (why??), and one .css file (just want this bundled into the one js file).</p>
  <p>I ran this very basic command to get a starter project:<br />
  <code>npx degit sveltejs/template myproject</code></p>
  <p>I tried adding a couple of plugins, but nothing I added achieved the results I wanted.  Primarily, the plugins I found seem to want to create a single HTML file with everything in it.  It seems like PostCSS might be able to help, but I don't understand what configuration I can set via Vite to get it to do what I want.</p>
  <p>What is the magic set of plugins and config that will output a single HTML file with a single js file that renders my Svelte app and its CSS onto the page?</p>