-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
rollup.config.js
70 lines (69 loc) · 1.9 KB
/
rollup.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
import resolve from '@rollup/plugin-node-resolve';
import html from '@open-wc/rollup-plugin-html';
import copy from 'rollup-plugin-copy';
export default [
{
external: ["analyzer", "nydus"],
input: 'html/*.html',
output: {
dir: 'dist',
paths: {
analyzer: './analyzer.js',
nydus: "./nydus.js"
}
},
plugins: [
html({
minify: false,
}),
copy({
targets: [
{ src: 'icons/*', dest: 'dist' },
{ src: 'manifest.json', dest: 'dist' },
],
}),
resolve()
],
},
{
external: ["analyzer"],
input: {
'content_script': './lib/content/content_script.js',
'nydus': './packages/nydus/nydus.js',
'background': './lib/background/background.js',
'background-worker': './lib/background/background-worker.js',
//"crawler-constants": './lib/crawler/crawler-constants.js',
'spotlight-border': './lib/crawler/spotlight-border.js',
'content-messaging': './lib/content/content-messaging.js',
'connection-channels': './lib/types/connection-channels.js',
'message-types': './lib/types/message-types.js'
},
output: {
dir: 'dist',
paths: {
analyzer: './analyzer.js'
}
},
plugins: [
resolve(),
],
},
{
input: {
'crawler-inject': './lib/crawler/crawler-inject.js',
},
output: { dir: 'dist' },
plugins: [
resolve(),
],
},
{
input: {
analyzer: './packages/analyzer/index.js',
},
output: { dir: 'dist' },
plugins: [
resolve(),
],
}
];