mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
22 lines
447 B
JavaScript
22 lines
447 B
JavaScript
import { resolve } from 'node:path'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: './dist',
|
|
manifest: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, './index.html'),
|
|
other: resolve(__dirname, './other.js'),
|
|
},
|
|
treeshake: false,
|
|
output: {
|
|
format: 'cjs',
|
|
freeze: false,
|
|
externalLiveBindings: false,
|
|
},
|
|
},
|
|
},
|
|
})
|