2022-08-01 21:08:34 +02:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
|
|
import { viteStaticCopy } from "vite-plugin-static-copy";
|
|
|
|
import * as path from "path";
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [
|
|
|
|
svelte(),
|
|
|
|
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"),
|
2022-08-01 21:08:34 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
src: path.join(__dirname, "node_modules/boxicons", "css"),
|
2022-10-22 17:28:44 +02:00
|
|
|
dest: path.resolve(__dirname, "dist/vendor/boxicons"),
|
2022-08-01 21:08:34 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
server: {
|
|
|
|
proxy: {
|
|
|
|
"/api": {
|
|
|
|
target: "http://localhost:8093/",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|