feat: use go embed

This commit is contained in:
boojack
2022-07-10 09:02:56 +08:00
parent 48d8c6ee0f
commit 46d7ecca88
10 changed files with 66 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { resolve } from "path";
// https://vitejs.dev/config/
export default defineConfig({
@@ -17,4 +18,9 @@ export default defineConfig({
},
},
},
resolve: {
alias: {
"@/": `${resolve(__dirname, "src")}/`,
},
},
});