generated from IqbalLx/chrome-extension-boilerplate-react-vite
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.js
executable file
·39 lines (36 loc) · 1.1 KB
/
manifest.js
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 fs from 'node:fs';
const packageJson = JSON.parse(fs.readFileSync('../package.json', 'utf8'));
const isDev = process.env.__DEV__ === 'true';
const manifest = {
manifest_version: 3,
default_locale: 'en',
/**
* if you want to support multiple languages, you can use the following reference
* https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Internationalization
*/
name: `Honest${isDev ? '-dev' : ''}`,
version: packageJson.version,
description:
'Honest is a community-driven coupon-finder extension that helps you save money without stealing your affiliate referral cookies.',
host_permissions: ['<all_urls>'],
permissions: ['tabs'],
options_page: 'options/index.html',
background: {
service_worker: 'background.iife.js',
type: 'module',
},
action: {
default_popup: 'popup/index.html',
default_icon: 'icon-34.png',
},
icons: {
128: 'icon-128.png',
},
web_accessible_resources: [
{
resources: ['*.js', '*.css', '*.svg', 'icon-128.png', 'icon-34.png'],
matches: ['*://*/*'],
},
],
};
export default manifest;