-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathesbuild.dev.mjs
47 lines (45 loc) · 1.39 KB
/
esbuild.dev.mjs
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
import * as esbuild from "esbuild";
let ctx = await esbuild.context({
entryPoints: [
"./ui/manifest.json",
"./ui/html/about.html",
"./ui/html/add.html",
"./ui/html/balances.html",
"./ui/html/create.html",
"./ui/html/details.html",
"./ui/html/edit.html",
"./ui/html/expenses.html",
"./ui/html/groups.html",
"./ui/html/invite.html",
"./ui/html/invite-public.html",
"./ui/html/invites.html",
"./ui/html/reimbursements.html",
"./ui/html/settings-host.html",
"./ui/html/settings-member.html",
"./ui/html/settings-public.html",
"./ui/css/udjat.css",
"./ui/css/style.css",
"./ui/css/print.css",
"./ui/css/soria.ttf",
"./ui/svg/add.svg",
"./ui/svg/circles.svg",
"./ui/svg/icon.svg",
"./ui/png/ios/16.png",
"./ui/png/ios/64.png",
"./ui/png/ios/180.png",
"./ui/png/ios/192.png",
"./ui/png/ios/512.png",
"./ui/js/index.js",
"./ui/js/groups.js",
"./ui/js/add.js",
"./node_modules/htmx.org/dist/ext/path-deps.js",
"./node_modules/htmx.org/dist/ext/json-enc.js",
"./node_modules/htmx.org/dist/ext/client-side-templates.js",
],
external: ['*.ttf'],
entryNames: "[ext]/[name]", // will name the result files by their folder names
bundle: true,
loader: { ".json": "copy", ".html": "copy", ".svg": "copy", ".png": "copy", ".ttf": "copy"},
outdir: "tahuti/app/ui",
});
await ctx.watch();