-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.js
More file actions
33 lines (31 loc) · 730 Bytes
/
Copy pathbuild.js
File metadata and controls
33 lines (31 loc) · 730 Bytes
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
const esbuild = require("esbuild");
const builds = [
{
entryPoints: ["src/ghost.js"],
outfile: "dist/js/ghost.js",
},
{
entryPoints: ["src/content.js"],
outfile: "dist/js/content.js",
},
{
entryPoints: ["src/background.js"],
outfile: "dist/background.js",
},
{
entryPoints: ["src/messenger_patch.js"],
outfile: "dist/js/messenger_patch.js",
},
];
Promise.all(
builds.map((options) =>
esbuild.build({
...options,
bundle: true,
minify: false,
format: "iife",
target: ["chrome89"],
logLevel: "info",
}),
),
).catch(() => process.exit(1));