forked from Mikescops/git-notify-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.neutrinorc.js
49 lines (48 loc) · 1.31 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
const react = require('@neutrinojs/react');
const copy = require('@neutrinojs/copy');
const webext = require('neutrino-webextension');
const typescript = require('neutrinojs-typescript');
module.exports = {
options: {
output: 'build/v3',
mains: {
background: {
entry: 'background',
webext: {
type: 'background'
}
},
popup: {
entry: 'popup',
webext: {
type: 'action'
}
},
options: {
entry: 'options',
webext: {
type: 'options_ui'
}
}
}
},
use: [
typescript(),
react({
html: {
title: 'GitLab Notify'
}
}),
copy({
patterns: [{ context: 'assets', from: '**/*', to: 'assets', toType: 'dir' }]
}),
webext({
manifest: 'src/manifest',
minify: {
// Javascript minification occurs only in production by default.
// To change uglify-es options or switch to another minifier, see below.
source: process.env.NODE_ENV === 'production'
}
})
]
};