-
Notifications
You must be signed in to change notification settings - Fork 7
/
esbuild.js
28 lines (28 loc) · 1019 Bytes
/
esbuild.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
/* eslint-disable import/no-extraneous-dependencies */
require("esbuild")
.build({
entryPoints: [
"./client-src/pico/pico.css",
"./client-src/base/base.css",
"./client-src/base/base.js",
"./client-src/index/index.css",
"./client-src/help/index.css",
"./client-src/help/index.js",
"./client-src/about/index.css",
"./client-src/case-studies/index.css",
"./client-src/create/index.js",
"./client-src/create-results/index.js",
"./client-src/digitize/index.js",
"./client-src/digitize-results/index.js",
],
entryNames: "[dir]", // will name the result files by their folder names
outbase: "./client-src",
bundle: true,
minify: true,
outdir: "./sketch_map_tool/static/bundles",
format: "esm",
external: [
"/static/assets/*",
],
}).catch(() => process.exit(1));
/* eslint-enable */