-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.js
executable file
·23 lines (22 loc) · 997 Bytes
/
build.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env node
require('esbuild')
.build({
entryPoints: {
'background.build': './Shared (Extension)/Resources/background.js',
'content.build': './Shared (Extension)/Resources/content.js',
'nostr.build': './Shared (Extension)/Resources/nostr.js',
'popup.build': './Shared (Extension)/Resources/popup.js',
'options.build': './Shared (Extension)/Resources/options.js',
'permission/permission.build':
'./Shared (Extension)/Resources/permission/permission.js',
'experimental/experimental.build':
'./Shared (Extension)/Resources/experimental/experimental.js',
'event_history/event_history.build':
'./Shared (Extension)/Resources/event_history/event_history.js',
},
outdir: './Shared (Extension)/Resources',
sourcemap: 'inline',
bundle: true,
// minify: true,
})
.catch(() => process.exit(1));