20 lines
526 B
JavaScript
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
|
|
}
|
|
}
|
|
};
|