-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
80 lines (79 loc) · 6.14 KB
/
webpack.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
70
71
72
73
74
75
76
77
78
79
80
const path = require('path');
const WebpackUserscript = require('webpack-userscript');
module.exports = env => {
return {
entry: './src/inject.js',
plugins: [
new WebpackUserscript({
headers: {
'name': 'InjectJS',
'version': env['NODE_ENV'] === 'development' ? '[version].build[buildNo]' : '[version]',
'author': '[author]',
'description': 'InjectJS allows user to inject custom JavaScript libraries and add JavaScript code to any web page.',
'include': 'http*://*',
'require': 'https://greasyfork.org/scripts/371339-gm-webextpref/code/GM_webextPref.js?version=623327',
'grant': [
'GM_getValue',
'GM_setValue',
'GM_deleteValue',
'GM_registerMenuCommand',
'GM_addValueChangeListener',
'unsafeWindow'],
'run-at': 'document-start',
'noframes': true,
'icon64': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlw' +
'SFlzAAABWAAAAVgB328q4QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAxNSURBVHic7Vt7UFTXHf7OvbsLuu' +
'wuILu8xAcKKFoJuBAbgpW66m40QWsyydTpVJ086mQ6tjhjJxk7bZw66aTT6jDTToJJa8aMbWcqlWAR4kRRQYkEzSjIwyiKUURAhIWF' +
'Xe69p39sdt3lnmXv8tB2zDfDoJd7zvmd7/xe53fOJQAonmBwj1uAxw2V5x8JCQl02bJlT4Q21NbWkjt37hDAh4Bly5bRw4cPi49PrE' +
'eHjRs38iUlJQT4zgS+I0AV/BU57HY76uvryY0bN4jBYMCKFSukqKioyZbtkUARAd3d3aipqeFOnz5NqquryaVLl4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Vbu3YtLS4u5urr64nZbPYOWvpmrSpqbgQ1phloZJKWhunV4DUcnP0Cbpy7R+o+bGGW0R' +
'KXuut/0clyU+ps7CXdLf0kJk3v/VtLOfv6TFJOzNQR4IuCggKpuLiYKy0t5cxms1dHu1r7yI2znSHtDXgNhxSL+26PaZGB6mKnUXvn' +
'kLcPSaQoea1GlbU5RYxOjqD3Gh5wXx6QnxvEpBqoL0keTMld4ZUrV1K9Xo8jR474TXas1DkQzFtSxenRYQDcUSBzs7z4MdTrQs3eRr' +
'7s51+ovvighROdctfz/QB7hCkhICwsDGvWrJEaGhpIa2vruI/J5q9MkHJeTfET/Kkfz5VmPW0MickFzydJyT+Me3QEAEBBQQEFgLKy' +
'Mp+LBMrahunVePaXi8Xn3jPL6n2EI1hXlCMk58crijALXkiSVu1+KuCFzinxAQCwbt06SaPR8KWlpZwnHK78TabQd2uQ2O84iL1zCC' +
'67O1GRJAr1dBU1puhhWhhJZz9rklRhgY8V1NNVeL4oR2w73SldOdLOtZ+7x/neHdJEqJC4NEbKeHmuNDvPNCbtU0aAwWBAXl4eraqq' +
'Il1dXTAajUheHksxiR9pzV0eS+cujxUBiK5BAUO9TjItKoxqtMqnNaUfTBQUFEiiKOLo0aNT/mGGRquCYaY2pMkDU0zA+vXrqclkQm' +
'lp6aTfKJ0sTCkBSUlJ9MCBA8KSJUvGFQIfBabMB3hgs9mozWb7n/0a7Yn/aOo7Ah63AI8b3huWT+qns7Irpk8anngT+C+Zm0S8tmwz' +
'cwAAAABJRU5ErkJggg=='
}
})
],
devServer: {
contentBase: path.join(__dirname, 'dist')
},
output: {
filename: 'inject.user.js',
path: path.resolve(__dirname, 'dist')
}
}
};