mirror of
https://github.com/wahyd4/links.git
synced 2026-08-08 21:04:53 +10:00
21 lines
445 B
JavaScript
21 lines
445 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: 'static/dist',
|
|
emptyOutDir: false,
|
|
rollupOptions: {
|
|
input: {
|
|
search: 'static_src/search.jsx',
|
|
},
|
|
output: {
|
|
entryFileNames: '[name].js',
|
|
chunkFileNames: '[name]-[hash].js',
|
|
assetFileNames: '[name][extname]',
|
|
},
|
|
},
|
|
},
|
|
});
|