-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.neutrinorc.js
70 lines (68 loc) · 1.48 KB
/
.neutrinorc.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
/**
* For testing only MANIFEST V3
*/
const standard = require('@neutrinojs/standardjs');
const react = require('@neutrinojs/react');
const copy = require('@neutrinojs/copy');
const webext = require('./lib');
module.exports = {
options: {
source: 'test/manifestV3',
output: 'build/v3',
mains: {
background: {
entry: 'src/background',
webext: {
type: 'background',
setup: 'src/background/__dev__/setup'
}
},
popup: {
entry: 'src/popup',
webext: {
type: 'action'
}
},
content1: {
entry: 'src/content1',
webext: {
type: 'content_scripts',
setup: 'src/content1/__dev__/setup',
manifest: {
matches: ['<all_urls>']
}
}
},
content2: {
entry: 'src/content2',
webext: {
type: 'content_scripts',
manifest: {
matches: ['https://github.com/crimx/neutrino-webextension'],
run_at: 'document_start',
match_about_blank: true,
all_frames: true
}
}
}
}
},
use: [
standard(),
react({
html: {
title: 'neutrino-webextension'
}
}),
copy({
patterns: [
{ context: 'assets', from: '**/*', to: 'assets', toType: 'dir' }
]
}),
webext({
polyfill: true,
manifest: 'test/manifestV3/src/manifest',
setup: 'test/setup'
})
]
};