phanpy/vite.config.js

17 lines
374 B
JavaScript
Raw Normal View History

2022-12-10 12:14:48 +03:00
import preact from '@preact/preset-vite';
import { resolve } from 'path';
2022-12-10 12:14:48 +03:00
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
compose: resolve(__dirname, 'compose/index.html'),
},
},
},
2022-12-10 12:14:48 +03:00
});