This repository has been archived on 2024-01-12. You can view files and clone it, but cannot push or open issues or pull requests.
2022-10-10 10:46:23 +01:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
2022-10-17 00:13:41 +01:00
|
|
|
import sveltePreprocess from "svelte-preprocess";
|
|
|
|
import { resolve as pathResolve } from "path";
|
2022-10-10 10:46:23 +01:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2022-10-17 00:13:41 +01:00
|
|
|
plugins: [
|
|
|
|
svelte({
|
|
|
|
preprocess: sveltePreprocess({
|
|
|
|
preserve: ["ld+json"],
|
|
|
|
scss: {
|
|
|
|
includePaths: ["src/"],
|
|
|
|
quietDeps: true,
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
],
|
2022-10-10 10:46:23 +01:00
|
|
|
optimizeDeps: { exclude: ["svelte-navigator"] },
|
2022-10-17 00:13:41 +01:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
"~": pathResolve(__dirname, "src"),
|
|
|
|
},
|
|
|
|
},
|
2022-10-10 10:46:23 +01:00
|
|
|
});
|