mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
18 lines
379 B
JavaScript
18 lines
379 B
JavaScript
import { defineConfig } from 'vite'
|
|
import baseConfig from './vite.config.js'
|
|
|
|
export default defineConfig({
|
|
...baseConfig,
|
|
build: {
|
|
...baseConfig.build,
|
|
outDir: 'dist/same-file-name',
|
|
rollupOptions: {
|
|
output: {
|
|
entryFileNames: '[name].js',
|
|
chunkFileNames: '[name].[hash].js',
|
|
assetFileNames: '[name].[ext]',
|
|
},
|
|
},
|
|
},
|
|
})
|