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

34 lines
778 B
JavaScript
Raw Normal View History

2022-07-07 00:19:05 +03: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-07 00:19:05 +03:00
envPrefix: 'PB',
base: './',
2022-07-07 00:19:05 +03:00
build: {
chunkSizeWarningLimit: 1000,
reportCompressedSize: false,
},
plugins: [
svelte({
experimental: {
useVitePreprocess: true,
},
2022-10-30 10:28:14 +02:00
onwarn: (warning, handler) => {
if (warning.code.startsWith('a11y-')) {
return; // silence a11y warnings
}
handler(warning);
},
2022-07-07 00:19:05 +03:00
}),
],
resolve: {
alias: {
'@': __dirname + '/src',
}
},
})