-
Notifications
You must be signed in to change notification settings - Fork 0
/
.neutrinorc.js
37 lines (36 loc) · 1.02 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
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: {
popup: {
entry: 'popup',
webext: {
type: 'action'
}
}
}
},
use: [
typescript(),
react({
html: {
title: 'WebAuthn in Extension v3 - Playground'
}
}),
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'
}
})
]
};