22 lines
559 B
JavaScript
22 lines
559 B
JavaScript
import { defineConfig } from 'vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import { resolve } from 'path';
|
|
import { fileURLToPath } from 'node:url';
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: '/static/',
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
build: {
|
|
manifest: 'manifest.json',
|
|
outDir: resolve("./static/dist"),
|
|
rollupOptions: {
|
|
input: { main: resolve('./src/main.ts') }
|
|
}
|
|
}
|
|
});
|