2021-12-08 23:34:23 +08:00
|
|
|
import { defineConfig } from "vite";
|
2022-03-30 12:36:39 +08:00
|
|
|
import svgr from "vite-plugin-svgr";
|
2021-12-08 23:34:23 +08:00
|
|
|
import react from "@vitejs/plugin-react";
|
2022-03-27 00:58:17 +08:00
|
|
|
import monaco from "vite-plugin-monaco-editor";
|
2021-12-08 23:34:23 +08:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
root: "src",
|
2022-07-05 00:52:22 +08:00
|
|
|
plugins: [
|
|
|
|
svgr(),
|
|
|
|
react(),
|
|
|
|
monaco({ languageWorkers: ["editorWorkerService", "typescript"] }),
|
|
|
|
],
|
2021-12-12 00:39:28 +08:00
|
|
|
build: {
|
|
|
|
outDir: "../dist",
|
2021-12-22 01:15:04 +08:00
|
|
|
emptyOutDir: true,
|
2021-12-12 00:39:28 +08:00
|
|
|
},
|
2021-12-08 23:34:23 +08:00
|
|
|
});
|