upend/webui/vite.config.ts

31 lines
744 B
TypeScript
Raw Normal View History

import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import { viteStaticCopy } from "vite-plugin-static-copy";
import * as path from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
sveltekit(),
viteStaticCopy({
targets: [
{
src: path.join(__dirname, "node_modules/boxicons", "fonts"),
2022-10-22 17:28:44 +02:00
dest: path.resolve(__dirname, "dist/vendor/boxicons"),
},
{
src: path.join(__dirname, "node_modules/boxicons", "css"),
2022-10-22 17:28:44 +02:00
dest: path.resolve(__dirname, "dist/vendor/boxicons"),
},
],
}),
],
server: {
proxy: {
"/api": {
target: "http://localhost:8093/",
},
},
},
});