From 88110f536f9c3843ecf5016122e101f8a424af77 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sat, 22 Jan 2022 22:43:38 +0100 Subject: Initial commit --- src/webapp/vite.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/webapp/vite.config.js (limited to 'src/webapp/vite.config.js') diff --git a/src/webapp/vite.config.js b/src/webapp/vite.config.js new file mode 100644 index 0000000..8cbaae5 --- /dev/null +++ b/src/webapp/vite.config.js @@ -0,0 +1,14 @@ +import {defineConfig} from "vite"; +import {svelte} from "@sveltejs/vite-plugin-svelte"; +import path from "path"; +import {optimizeCss} from "carbon-preprocess-svelte"; + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [svelte(), process.env.NODE_ENV === "production" && optimizeCss()], + resolve: { + alias: { + "@": path.resolve("/src"), + }, + }, +}); -- cgit v1.3