Files
reiverr/svelte.config.js
Aleksi Lassila 4f0bc1e093 What is this
2024-03-18 23:12:58 +02:00

20 lines
526 B
JavaScript

import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { readFileSync } from 'fs';
import { fileURLToPath } from 'url';
const file = fileURLToPath(new URL('package.json', import.meta.url));
const json = readFileSync(file, 'utf8');
const pkg = JSON.parse(json);
export default {
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
// for more information about preprocessors
preprocess: vitePreprocess(),
vitePlugin: {
inspector: {
// toggleKeyCombo: 'meta',
holdMode: true
}
}
};