diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-01-22 22:43:38 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-01-22 22:43:38 +0100 |
| commit | 88110f536f9c3843ecf5016122e101f8a424af77 (patch) | |
| tree | e8be4e77ccfb5ad37f49f89adad59ff12b4c85ea /src/webapp/vite.config.js | |
| download | bookmark-thing-88110f536f9c3843ecf5016122e101f8a424af77.tar.xz bookmark-thing-88110f536f9c3843ecf5016122e101f8a424af77.zip | |
Initial commit
Diffstat (limited to 'src/webapp/vite.config.js')
| -rw-r--r-- | src/webapp/vite.config.js | 14 |
1 files changed, 14 insertions, 0 deletions
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"), + }, + }, +}); |
