I’m having multiple inputs when building my app with vite. My config looks like this:
export default defineConfig({
plugins: [
react(),
eslintPlugin()
],
build: {
rollupOptions: {
input: {
test1: resolve(__dirname, '/test1.html'),
test2: resolve(__dirname, '/test2.html')
}
}
}
});
The output looks like this:
dist
|-test1.html
|-test2.html
|-assets
What I actually want is something like this:
dist
|test1
|-index.html
|test2
|-index.html
|-assets
Is this possible?
Thanks