-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathvite.config.ts
40 lines (39 loc) · 933 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import path from "node:path";
import { defineConfig } from "vite";
import vscode from "@tomjs/vite-plugin-vscode";
import vue from "@vitejs/plugin-vue";
export default defineConfig({
plugins: [
vscode({
extension: {
entry: "src/extension.ts",
//minify: false,
},
}),
vue({
template: {
compilerOptions: {
isCustomElement: (tag: string) => tag.startsWith("vscode-"),
},
},
}),
],
build: {
minify: false,
outDir: "out/vitebuild",
emptyOutDir: true,
rollupOptions: {
// https://cn.vitejs.dev/guide/build.html#multi-page-app
input: {
"role-generation": path.resolve(
__dirname,
"webviews/lightspeed/role-generation.html",
),
"playbook-generation": path.resolve(
__dirname,
"webviews/lightspeed/playbook-generation.html",
),
},
},
},
});