31 lines
540 B
JavaScript
31 lines
540 B
JavaScript
import { defineConfig } from 'vite'
|
|
import legacy from '@vitejs/plugin-legacy'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
legacy({
|
|
targets: ['defaults', 'not IE 11']
|
|
})
|
|
],
|
|
server: {
|
|
port: 3000,
|
|
open: true
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
minify: 'terser',
|
|
sourcemap: true,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
// No external dependencies to chunk
|
|
}
|
|
}
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': new URL('./src', import.meta.url).pathname
|
|
}
|
|
}
|
|
}) |