insta-toc
Version:
Simultaneously generate, update, and maintain a table of contents for your notes in real time.
16 lines (12 loc) • 664 B
JavaScript
// import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
import { readFileSync } from "node:fs";
import { sveltePreprocess } from "svelte-preprocess";
const isDevMode = JSON.parse(readFileSync("./package.json", "utf8")).main.includes("dev");
/** @type {import('@sveltejs/vite-plugin-svelte').SvelteConfig} */
const config = {
preprocess: sveltePreprocess({ scss: true, globalStyle: true, postcss: true }),
// preprocess: vitePreprocess(),
compilerOptions: { runes: undefined, css: "injected", experimental: { async: true } },
vitePlugin: { inspector: isDevMode, experimental: { sendWarningsToBrowser: true } }
};
export default config;