1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2024-11-25 09:21:11 +02:00
pocketbase/ui/vite.config.js
2023-01-10 15:26:36 +02:00

32 lines
758 B
JavaScript

import { defineConfig } from 'vite';
import { svelte, vitePreprocess } from '@sveltejs/vite-plugin-svelte';
// see https://vitejs.dev/config
export default defineConfig({
server: {
port: 3000,
},
envPrefix: 'PB',
base: './',
build: {
chunkSizeWarningLimit: 1000,
reportCompressedSize: false,
},
plugins: [
svelte({
preprocess: [vitePreprocess()],
onwarn: (warning, handler) => {
if (warning.code.startsWith('a11y-')) {
return; // silence a11y warnings
}
handler(warning);
},
}),
],
resolve: {
alias: {
'@': __dirname + '/src',
}
},
})