title: Using Snowpack to transpile Web Components and package dependencies
body: <p>I am using Django to build a SSR website and using Django to serve static files. I also built some Web Components using lit-element and Typescript. I would like to avoid the complexity of Webpack and use Snowpack instead. Components are stored at <code>/static/js/components</code>.</p>
  <p>To use the components, I need to (1) transpile them to Javascript, (2) make available their dependencies (e.g. <code>lit-element</code>) and (3) move the transpired files as well as the <code>_snowpack</code> folder to Django's <code>/static/</code> folder.</p>
  <p>Using just <code>snowpack build</code> does both but creates a <code>build</code> folder with a complete copy of the application. It is my understanding that <a href="https://www.snowpack.dev/reference/configuration#buildoptions.out" rel="nofollow noreferrer">buildOptions.out</a> only moves the output folder (thereby overwriting <code>static/</code> altogether if <code>buildOptions.clean===true</code>). I guess it would be possible to script the copying of the necessary files and delete the rest of the <code>build</code> folder immediately, but that strikes me as quite inelegant.</p>
  <p>Is there a configuration to only create <code>_snowpack</code> and the transpiled files to a specific directory?</p>