-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
39 lines (38 loc) · 899 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
/// <reference types="vitest" />
import { defineConfig } from "vite";
import { configDefaults } from "vitest/config";
import vue from "@vitejs/plugin-vue";
import svgLoader from "vite-svg-loader";
import webfontDownload from "vite-plugin-webfont-dl";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), webfontDownload(), svgLoader()],
optimizeDeps: {
exclude: ["vue-demi"],
},
base: "/pomodoro-timer",
server: {
host: true,
port: 3000,
},
preview: {
host: true,
port: 3333,
},
test: {
globals: true,
environment: "jsdom",
coverage: {
provider: "v8",
reporter: ["text", "html"],
exclude: [
"commitlint.config.js",
".eslintrc.cjs",
"src/vite-env.d.ts",
"src/main.ts",
"src/types/index.ts",
],
},
exclude: [...configDefaults.exclude, "e2e/*"],
},
});