From 83b11393da8f733c0ffc5abed5d1e0e827d04b61 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Thu, 2 Jun 2022 23:02:22 +0200 Subject: refactor: Rename accounts to portal --- apps/portal/src/vite.config.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 apps/portal/src/vite.config.ts (limited to 'apps/portal/src/vite.config.ts') diff --git a/apps/portal/src/vite.config.ts b/apps/portal/src/vite.config.ts new file mode 100644 index 0000000..907422e --- /dev/null +++ b/apps/portal/src/vite.config.ts @@ -0,0 +1,30 @@ +import {defineConfig} from "vite"; +import {svelte} from "@sveltejs/vite-plugin-svelte"; +import sveltePreprocess from "svelte-preprocess"; +// @ts-ignore +import path from "path"; + +// https://vitejs.dev/config/ +export default defineConfig({ + resolve: { + alias: { + "$shared": path.resolve(__dirname, "../../web-shared/src"), + "$app": path.resolve(__dirname, "./app"), + } + }, + build: { + outDir: "build", + emptyOutDir: true, + rollupOptions: { + input: { + main: path.resolve(__dirname, "index.html"), + } + } + }, + + plugins: [ + svelte({ + preprocess: sveltePreprocess() + }) + ], +}); -- cgit v1.3