-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
41 lines (40 loc) · 1.09 KB
/
vite.config.ts
File metadata and controls
41 lines (40 loc) · 1.09 KB
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
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
import { resolve } from "path";
import updateManifestPlugin from "./vitePluginUpdateManifest";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
plugins: [react(), updateManifestPlugin(), tailwindcss()],
resolve: {
alias: {
"@": resolve(__dirname, "src"),
},
},
build: {
rollupOptions: {
input: {
popup: resolve(__dirname, "popup.html"),
options: resolve(__dirname, "options.html"),
sidePanel: resolve(__dirname, "sidePanel.html"),
callback: resolve(__dirname, "callback.html"),
background: resolve(__dirname, "src/background/background.ts"),
content: resolve(__dirname, "src/content/content.ts"),
},
output: {
entryFileNames: "[name].js",
},
},
outDir: "dist",
},
test: {
globals: true,
environment: "jsdom",
setupFiles: "./src/test/setup.ts",
exclude: [
"node_modules",
"tests/**/*.spec.ts",
// "**/playwright/**",
// "**/e2e/**",
],
},
});