title: Change the output path for certain files during build - ViteJS
body: <p>I'm making a static multipage website with <a href="https://vitejs.dev/" rel="nofollow noreferrer">ViteJS</a> (html, scss and JS) and I can't find the way to change the build path of html files to put them into the root of dist folder.</p>
  <p>My project structure is:</p>
  <pre><code>├── dist
      └──...
      └──src
         └── pages
               └── some-page.html
      └──...
  ├── node_modules
  ├── src
      └── pages
          └── some-page.html
  ├── .gitignore
  ├── index.html
  ├── package-lock.json
  ├── package.json
  └── vite.config.js
  </code></pre>
  <p>and I want:</p>
  <pre><code>├── dist
      └── ...
      └── some-page.html
      └── ...
  ├── node_modules
  ├── src
      └── pages
          └── some-page.html
  ├── .gitignore
  ├── index.html
  ├── package-lock.json
  ├── package.json
  └── vite.config.js
  </code></pre>
  <p>my vite.config.js (as the documentation recommends) is:</p>
  <pre><code>const { resolve } = require('path')
  const { defineConfig } = require('vite')
  
  module.exports = defineConfig({
      build: {
          rollupOptions: {
              input: {
                  main: resolve(__dirname, 'index.html'),
                  multiminerales: resolve(__dirname, 'src/pages/some-page.html')
              }
          }
      }
  })
  </code></pre>
  <p>So, I think I need to change the input object but I can't find any information about it, I know about public directory but it will break all my folders structure. What can I do?</p>