mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-17 03:29:31 -07:00
31 lines
596 B
TypeScript
31 lines
596 B
TypeScript
import { defineConfig } from 'vite'
|
|
import solidPlugin from 'vite-plugin-solid'
|
|
|
|
export default defineConfig({
|
|
plugins: [solidPlugin()],
|
|
build: {
|
|
outDir: './static',
|
|
watch: {
|
|
include: 'assets/ts/**'
|
|
},
|
|
rollupOptions: {
|
|
input: './assets/ts/main.tsx',
|
|
output: {
|
|
dir: './static/bundled/js',
|
|
format: 'es',
|
|
entryFileNames: '[name].js',
|
|
chunkFileNames: '[hash:6].js',
|
|
compact: true
|
|
}
|
|
},
|
|
terserOptions: {
|
|
compress: {
|
|
passes: 3
|
|
},
|
|
output: {
|
|
comments: false
|
|
}
|
|
}
|
|
}
|
|
})
|