-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild-config.js
67 lines (61 loc) · 2.06 KB
/
build-config.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*eslint strict: ['error', 'global'], no-implicit-globals: 'off'*/ 'use strict'; /* globals module, */ // license: MPL-2.0
module.exports = function({ options, /*packageJson,*/ manifestJson, files, }) {
manifestJson.applications.gecko.strict_min_version = '59.0';
manifestJson.permissions.push(
'menus',
'notifications',
'tabs',
// 'webRequest', 'webRequestBlocking',
);
!options.viewRoot && (options.viewRoot = options.chrome ? 'UnloadTabs.html' : 'UnloadTabs');
delete manifestJson.browser_action;
delete manifestJson.background.persistent;
manifestJson.commands = {
unloadSelectedTab: {
suggested_key: { },
description: 'Unload the current tab',
}, unloadSelectedTab_1: {
description: 'Unload the current tab (alternative)',
},
prevLoadedTab: {
suggested_key: { default: 'Alt+PageUp', },
description: 'Switch to the previous loaded Tab',
}, prevLoadedTab_1: {
description: 'Switch to the previous loaded Tab (alternative)',
},
nextLoadedTab: {
suggested_key: { default: 'Alt+PageDown', },
description: 'Switch to the next loaded Tab',
}, nextLoadedTab_1: {
description: 'Switch to the next loaded Tab (alternative)',
},
};
files['.'].push(
'dim-unloaded-tabs.css',
'many.png',
);
files.node_modules = [
'pbq/require.js',
'web-ext-utils/browser/index.js',
'web-ext-utils/browser/storage.js',
'web-ext-utils/browser/version.js',
'web-ext-utils/loader/_background.html',
'web-ext-utils/loader/_background.js',
'web-ext-utils/loader/_view.html',
'web-ext-utils/loader/_view.js',
'web-ext-utils/loader/views.js',
'web-ext-utils/options/editor/about.css',
'web-ext-utils/options/editor/about.js',
'web-ext-utils/options/editor/index.css',
'web-ext-utils/options/editor/index.js',
'web-ext-utils/options/editor/inline.js',
'web-ext-utils/options/editor/inline.css',
'web-ext-utils/options/index.js',
'web-ext-utils/update/index.js',
'web-ext-utils/utils/icons/',
'web-ext-utils/utils/event.js',
'web-ext-utils/utils/files.js',
'web-ext-utils/utils/notify.js',
'web-ext-utils/utils/semver.js',
];
};