/
amo-webextension.js
85 lines (82 loc) · 2.28 KB
/
amo-webextension.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/* eslint-disable */
"use strict";
const base = require("./common/system");
const urls = require("./common/urls-cliqz");
const settings = require("./common/amo-settings");
module.exports = {
"platform": "webextension",
"specific": "amo",
"baseURL": "/modules/",
"pack": "web-ext build -s build -a .",
"publish": "",
"settings": Object.assign({}, urls, settings, {
"antitrackingProtectionEnabled": false,
"offboardingURLs": {
"en": "https://cliqz.com/home/offboarding",
},
}),
"default_prefs" : {
"freshtab.search.mode": "search",
"modules.dropdown.enabled": false,
"modules.history-analyzer.enabled": false,
"modules.anolysis.enabled": false,
"showConsoleLogs": true,
"modules.browser-panel.enabled": false,
"modules.offers-cc.enabled": false,
},
"modules": [
"core",
"telemetry",
"core-cliqz",
"dropdown",
'abtests-legacy',
"static",
"geolocation",
"human-web",
"freshtab",
"webrequest-pipeline",
'antitracking',
"hpnv2",
"myoffrz-helper",
"offers-banner",
"offers-cc",
"offers-v2",
"popup-notification",
"history-analyzer",
"browser-panel",
"control-center",
"message-center",
"anolysis",
"anolysis-cc",
"market-analysis",
"search",
"webextension-specific",
],
"bundles": [
"hpnv2/worker.wasm.bundle.js",
"hpnv2/worker.asmjs.bundle.js",
"core/content-script.bundle.js",
"webextension-specific/app.bundle.js",
"freshtab/home.bundle.js",
"dropdown/dropdown.bundle.js",
"control-center/control-center.bundle.js",
"browser-panel/browser-panel.bundle.js",
"offers-cc/offers-cc.bundle.js",
"offers-banner/app.bundle.js",
"human-web/page.bundle.js",
"human-web/rusha.bundle.js",
"webextension-specific/experimental-apis/cliqzmigration/api.bundle.js",
],
system: Object.assign({}, base.systemConfig, {
map: Object.assign({}, base.systemConfig.map, {
"ajv": "node_modules/ajv/dist/ajv.min.js",
"jsep": "modules/vendor/jsep.min.js",
})
}),
builderDefault: Object.assign({}, base.builderConfig, {
externals: base.builderConfig.externals.concat("@cliqz-oss/dexie"),
globalDeps: Object.assign({}, base.builderConfig.globalDeps, {
"@cliqz-oss/dexie": "Dexie"
}),
})
}