title: How add not imported image to output build with vite?
body: <p>I have an <code>app</code> folder with some images that are used by the external script and I need to include those images in the dist build folder.</p>
  <p>I tried to log files that go to output and those images are not included. I tried to add <code>assetsInclude</code> property but seems that property is not for that purpose.</p>
  <p>How can I include some specific images in <code>dist</code> folder that aren't imported explicitly ?
  Here is my <code>vite.config.js</code> file.</p>
  <pre class="lang-js prettyprint-override"><code>import { resolve, parse } from 'path';
  import { defineConfig } from 'vite';
  
  export default defineConfig({
    base: '/',
    root: resolve(__dirname, 'app'),
  
    assetsInclude: ['/app/images/externalImage.png'],
  
    build: {
      emptyOutDir: true,
      
      rollupOptions: {
        output: {
          dir: './dist',
          assetFileNames: (asset) =&gt; {
            console.log(parse(asset.name).name);
            if (parse(asset.name).name === 'externalImage') {
              return &quot;images/src/[name][extname]&quot;;
            }
            return &quot;assets/[name].[hash][extname]&quot;;
          }
        },
      },
    },
  });
  
  </code></pre>