-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
53 lines (52 loc) · 1.08 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
import { defineConfig } from "vitest/config"
import vue from "@vitejs/plugin-vue"
import license from "rollup-plugin-license"
import path from "path"
// https://vitejs.dev/config/
// https://vitest.dev/config/
export default defineConfig({
plugins: [
vue(),
license({
sourcemap: true,
thirdParty: {
includeSelf: true,
allow: {
test: "(Apache-2.0 OR MIT OR BSD-2-Clause OR BSD-3-Clause OR ISC)",
failOnUnlicensed: true,
failOnViolation: true,
},
output: {
file: path.join(__dirname, "dist", "NOTICE.txt"),
},
},
}),
],
server: {
strictPort: true,
hmr: {
// We use a different port for HMR so that it goes
// through our Go development proxy.
clientPort: 8080,
},
},
resolve: {
alias: {
"@": "/src",
},
},
build: {
sourcemap: true,
target: ["esnext"],
},
test: {
coverage: {
provider: "v8",
reporter: ["text", "cobertura", "html"],
all: true,
},
},
esbuild: {
legalComments: "none",
},
})