partey_workadventure/desktop/local-app/vite.config.ts

27 lines
727 B
TypeScript
Raw Normal View History

2022-02-20 20:30:53 +01:00
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import WindiCSS from "vite-plugin-windicss";
2022-02-22 10:05:21 +01:00
import { svelteSVG } from "rollup-plugin-svelte-svg";
import path from "path";
2022-02-20 20:30:53 +01:00
export default defineConfig({
2022-02-22 10:05:21 +01:00
resolve: {
alias: {
"~": `${path.resolve(__dirname, "src")}/`,
},
},
plugins: [
svelte(),
svelteSVG({
// optional SVGO options
// pass empty object to enable defaults
svgo: {},
// vite-specific
// https://vitejs.dev/guide/api-plugin.html#plugin-ordering
// enforce: 'pre' | 'post'
enforce: "pre",
}),
WindiCSS(),
],
2022-02-20 20:30:53 +01:00
});