mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
28 lines
464 B
JavaScript
28 lines
464 B
JavaScript
|
import { defineConfig } from "vite";
|
||
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||
|
import sveltePreprocess from "svelte-preprocess";
|
||
|
import autoprefixer from "autoprefixer";
|
||
|
|
||
|
export default defineConfig({
|
||
|
base: "",
|
||
|
server: {
|
||
|
fs: {
|
||
|
allow: [".."]
|
||
|
}
|
||
|
},
|
||
|
|
||
|
plugins: [
|
||
|
svelte({
|
||
|
hot: {
|
||
|
preserveLocalState: true
|
||
|
},
|
||
|
preprocess: sveltePreprocess({
|
||
|
sourceMap: false,
|
||
|
postcss: {
|
||
|
plugins: [autoprefixer()]
|
||
|
}
|
||
|
})
|
||
|
})
|
||
|
]
|
||
|
});
|