mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
17 lines
445 B
JavaScript
17 lines
445 B
JavaScript
import preact from '@preact/preset-vite';
|
|
import { resolve } from 'path';
|
|
import { defineConfig, splitVendorChunkPlugin } from 'vite';
|
|
|
|
// 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'),
|
|
},
|
|
},
|
|
},
|
|
});
|