phanpy/vite.config.js

18 wiersze
445 B
JavaScript
Czysty Zwykły widok Historia

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