my_gradio / js /_website /vite.config.ts
xray918's picture
Upload folder using huggingface_hub
0ad74ed verified
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import { inject_component_loader } from "../build/out/index.js";
//@ts-ignore
export default defineConfig(({ mode }) => ({
plugins: [sveltekit(), inject_component_loader({ mode })],
resolve: {
conditions: ["gradio"]
}
}));