-
Notifications
You must be signed in to change notification settings - Fork 4
/
build-config.js
69 lines (61 loc) · 2.12 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
68
69
/*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.chrome = { id: 'embimhfddeikmonnjmkdlcgigakajajd', };
manifestJson.permissions.push(
'nativeMessaging',
'notifications',
'sessions', // to remove own closed popups
'tabs',
'webNavigation',
'<all_urls>',
);
manifestJson.optional_permissions = [
'bookmarks', // create bookmark to `about:restartrequired`
];
!options.viewRoot && (options.viewRoot = options.chrome ? 'reStyle.html' : 'reStyle');
manifestJson.options_ui.open_in_tab = true;
manifestJson.browser_action.default_icon = manifestJson.icons;
delete manifestJson.background.persistent;
files.node_modules = [
'es6lib/dom.js',
'es6lib/functional.js',
'marked/marked.min.js',
'marked/LICENSE.md',
'multiport/index.js',
'native-ext/index.js',
'native-ext/init.node.js',
'native-ext/manager.js',
'native-ext/process.js',
'pbq/require.js',
'regexpx/index.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/content.js',
'web-ext-utils/loader/home.js',
'web-ext-utils/loader/index.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/dark.css',
'web-ext-utils/options/editor/light.css',
'web-ext-utils/options/editor/index.css',
'web-ext-utils/options/editor/index.js',
'web-ext-utils/options/index.js',
'web-ext-utils/tabview/index.css',
'web-ext-utils/tabview/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/index.js',
'web-ext-utils/utils/notify.js',
'web-ext-utils/utils/semver.js',
'yamljs/dist/yaml.min.js',
'yamljs/LICENSE',
];
};