22 lines
529 B
JavaScript
22 lines
529 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
export default defineConfig({
|
|
base: './',
|
|
plugins: [vue()],
|
|
build: {
|
|
outDir: 'static/build',
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
output: {
|
|
entryFileNames: 'app.js',
|
|
chunkFileNames: 'chunks/[name]-[hash].js',
|
|
assetFileNames: (assetInfo) => {
|
|
if (assetInfo.name && assetInfo.name.endsWith('.css')) return 'app.css'
|
|
return 'assets/[name]-[hash][extname]'
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|