add sveltePreprocess

This commit is contained in:
Lukas Hass 2022-01-31 17:34:36 +01:00
parent ca2875c801
commit d84a7536ca
No known key found for this signature in database
GPG Key ID: 7C8CEF72C4039178

View File

@ -1,10 +1,13 @@
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { envConfig } from "@geprog/vite-plugin-env-config";
import sveltePreprocess from "svelte-preprocess";
export default defineConfig({
plugins: [
svelte({}),
svelte({
preprocess: sveltePreprocess(),
}),
envConfig({
variables: [
"SKIP_RENDER_OPTIMIZATIONS",