title: Snowpack custom build file name, like rollup
body: <p><a href="https://rollupjs.org/guide/en/" rel="nofollow noreferrer">rollup</a> has a feature that allows for a custom output file name.<br />
  in the rollup.config.js file you can do this:</p>
  <pre class="lang-js prettyprint-override"><code>import pkg from './package.json';
  
  export default {
    output: [{
      file: `build/${pkg.name}.browser.${pkg.version}.min.js`,
    }],
  };
  
  </code></pre>
  <p>Let's say <code>package.json</code> includes <code>&quot;name&quot;: &quot;test-package&quot;, &quot;version&quot;: &quot;1.1.2&quot;</code><br />
  Running <code>rollup -c</code> produces the following output file:</p>
  <pre class="lang-sh prettyprint-override"><code>build/test-package.browser.1.1.2.min.js
  </code></pre>
  <p>This is great for automating builds.<br />
  Does <a href="https://www.snowpack.dev/" rel="nofollow noreferrer">Snowpack</a> offer something similar? <a href="https://www.snowpack.dev/reference/configuration#packageoptionsrollup" rel="nofollow noreferrer">It uses rollup internally</a> so it could be possible, but I haven't been able to find a way of doing it in the documentation yet.</p>