rage-framework-example/apps/browser/vite.config.ts

19 lines
459 B
TypeScript

import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
build: {
outDir: '../../server/client_packages/cef',
emptyOutDir: true,
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src/'),
'@/*': path.resolve(__dirname, './src/*'),
},
},
})