-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
40 lines (38 loc) · 930 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 { crx, defineManifest } from "@crxjs/vite-plugin";
import { defineConfig } from "vite";
const manifest = defineManifest({
manifest_version: 3,
description: "Change Notion topbar and sidebar color",
name: "Notion Bar Colorize",
version: "1.0.1",
author: {
email: "[email protected]",
},
icons: {
"16": "icons/icon-16.png",
"32": "icons/icon-32.png",
"48": "icons/icon-48.png",
"128": "icons/icon-128.png",
},
action: {
default_icon: "icons/icon-128.png",
default_title: "Notion Bar Colorize",
default_popup: "src/option.html",
},
background: {
service_worker: "src/background.ts",
},
content_scripts: [
{
matches: ["https://www.notion.so/*"],
js: ["src/content.ts"],
},
],
options_ui: {
page: "src/option.html",
},
permissions: ["storage", "webNavigation"],
});
export default defineConfig({
plugins: [crx({ manifest })],
});