improve local-app
This commit is contained in:
@@ -1,7 +1,26 @@
|
||||
import { defineConfig } from "vite";
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
import WindiCSS from "vite-plugin-windicss";
|
||||
import { svelteSVG } from "rollup-plugin-svelte-svg";
|
||||
import path from "path";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte(), WindiCSS()],
|
||||
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(),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user