-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathesbuild.mjs
49 lines (47 loc) · 1.33 KB
/
esbuild.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
48
49
import * as esbuild from "esbuild";
let ctx = await esbuild.context({
entryPoints: [
"./ui/manifest.json",
"./ui/html/index.html",
"./ui/html/create.html",
"./ui/html/invite.html",
"./ui/html/invites.html",
"./ui/html/tasks.html",
"./ui/html/tasks-public.html",
"./ui/html/settings.html",
"./ui/html/about.html",
"./ui/html/edit-list.html",
"./ui/html/edit-task.html",
"./ui/html/show-task.html",
"./ui/css/udjat.css",
"./ui/css/style.css",
"./ui/css/soria.woff2",
"./ui/css/soria.ttf",
"./ui/svg/circle-checked.svg",
"./ui/svg/circle-plus.svg",
"./ui/svg/circle-question.svg",
"./ui/svg/circle.svg",
"./ui/svg/circles.svg",
"./ui/svg/icon.svg",
"./ui/png/ios/16.png",
"./ui/png/ios/180.png",
"./ui/js/index.js",
"./ui/js/helper.js",
"./node_modules/htmx-ext-path-deps/path-deps.js",
"./node_modules/htmx-ext-json-enc/json-enc.js",
"./node_modules/htmx-ext-client-side-templates/client-side-templates.js",
],
external: ["*.svg", "*.woff2", "*.ttf"],
entryNames: "[ext]/[name]", // will name the result files by their folder names
bundle: true,
loader: {
".json": "copy",
".html": "copy",
".svg": "copy",
".png": "copy",
".woff2": "copy",
".ttf": "copy",
},
outdir: "maat/app/ui",
});
await ctx.watch();