1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-01-10 00:43:36 +02:00
pocketbase/ui/vite.config.js

28 lines
558 B
JavaScript
Raw Normal View History

2022-07-06 23:19:05 +02:00
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
// see https://vitejs.dev/config
export default defineConfig({
server: {
port: 3000,
},
2022-07-06 23:19:05 +02:00
envPrefix: 'PB',
base: './',
2022-07-06 23:19:05 +02:00
build: {
chunkSizeWarningLimit: 1000,
reportCompressedSize: false,
},
plugins: [
svelte({
experimental: {
useVitePreprocess: true,
},
2022-07-06 23:19:05 +02:00
}),
],
resolve: {
alias: {
'@': __dirname + '/src',
}
},
})