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

19 lines
459 B
TypeScript
Raw Normal View History

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