-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
60 lines (58 loc) · 1.44 KB
/
Copy pathvite.config.ts
File metadata and controls
60 lines (58 loc) · 1.44 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { defineConfig } from "vite";
import { crx, defineManifest } from "@crxjs/vite-plugin";
import react from "@vitejs/plugin-react";
const manifest = defineManifest({
manifest_version: 3,
name: "Miro",
version: "1.0.6",
description: "An auto-play tool for report videos with the latest features",
author: { email: "operationcheck@proton.me" },
permissions: ["contextMenus", "storage", "notifications"],
icons: {
"16": "src/assets/icon16.png",
"19": "src/assets/icon19.png",
"38": "src/assets/icon38.png",
"128": "src/assets/icon128.png",
},
action: {
default_icon: {
"16": "src/assets/icon16.png",
"19": "src/assets/icon19.png",
"38": "src/assets/icon38.png",
"128": "src/assets/icon128.png",
},
default_title: "Miro",
},
background: {
service_worker: "src/background.ts",
type: "module",
},
content_scripts: [
{
matches: ["https://www.nnn.ed.nico/*"],
run_at: "document_idle",
js: ["src/content.tsx"],
},
],
options_ui: {
page: "src/options.html",
open_in_tab: true,
},
});
export default defineConfig({
plugins: [react(), crx({ manifest })],
build: {
minify: "terser",
rollupOptions: {
input: {
content: "src/content.tsx",
background: "src/background.ts",
options: "src/options.html",
},
},
},
optimizeDeps: {
include: ["lucide-react"],
exclude: ["lucide-react/icons"],
},
});