mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-15 00:18:06 -05:00
24 lines
548 B
TypeScript
24 lines
548 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react-swc';
|
|
import { resolve } from 'path';
|
|
|
|
const src = resolve(__dirname, 'src');
|
|
const outDir = resolve(__dirname, 'dist');
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
publicDir: resolve(__dirname, 'public'),
|
|
root: src,
|
|
plugins: [react()],
|
|
build: {
|
|
outDir,
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(src, 'index.html'),
|
|
playground: resolve(src, 'playground', 'index.html'),
|
|
},
|
|
},
|
|
},
|
|
});
|