revite/vite.config.ts

17 lines
356 B
TypeScript
Raw Normal View History

2021-06-18 10:35:35 -04:00
import { resolve } from 'path'
2021-06-18 07:05:01 -04:00
import { defineConfig } from 'vite'
import preact from '@preact/preset-vite'
// https://vitejs.dev/config/
export default defineConfig({
2021-06-18 10:35:35 -04:00
plugins: [preact()],
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
ui: resolve(__dirname, 'ui/index.html')
}
}
}
2021-06-18 07:05:01 -04:00
})