2023-01-10 15:26:36 +02:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
import { svelte, vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
2022-07-06 23:19:05 +02:00
|
|
|
|
|
|
|
// see https://vitejs.dev/config
|
|
|
|
export default defineConfig({
|
2022-07-14 16:09:08 +02:00
|
|
|
server: {
|
|
|
|
port: 3000,
|
|
|
|
},
|
2022-07-06 23:19:05 +02:00
|
|
|
envPrefix: 'PB',
|
2022-08-01 19:55:31 +02:00
|
|
|
base: './',
|
2022-07-06 23:19:05 +02:00
|
|
|
build: {
|
|
|
|
chunkSizeWarningLimit: 1000,
|
|
|
|
reportCompressedSize: false,
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
svelte({
|
2023-01-10 15:26:36 +02:00
|
|
|
preprocess: [vitePreprocess()],
|
2022-10-30 10:28:14 +02:00
|
|
|
onwarn: (warning, handler) => {
|
|
|
|
if (warning.code.startsWith('a11y-')) {
|
|
|
|
return; // silence a11y warnings
|
|
|
|
}
|
|
|
|
handler(warning);
|
|
|
|
},
|
2022-07-06 23:19:05 +02:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': __dirname + '/src',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|