-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanifest.config.ts
39 lines (37 loc) · 1.01 KB
/
manifest.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
import { defineManifest } from '@crxjs/vite-plugin'
//@ts-ignore
import packageJson from './package.json'
const { version, name } = packageJson
const [major, minor, patch, label = '0'] = version
.replace(/[^\d.-]+/g, '')
.split(/[.-]/)
export default defineManifest(async (env) => ({
manifest_version: 3,
name: 'toboard',
version: `${major}.${minor}.${patch}.${label}`,
version_name: version,
action: {
default_popup: 'src/templates/popup.html'
},
description: "Dashboard for quick switching entries with toggl's API",
options_page: "src/templates/options.html",
permissions: [
"alarms",
"storage",
],
host_permissions: [
"*://*.api.track.toggl.com/*"
],
chrome_url_overrides: {
"newtab": "src/templates/newtab.html"
},
background: {
"service_worker": "src/background.ts",
"type": "module"
},
icons: {
"16": "icons/16.png",
"48": "icons/48.png",
"128": "icons/128.png"
}
}))