aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/build.ts
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-04-08 16:56:28 -0400
committerXe Iaso <me@xeiaso.net>2023-04-08 16:57:48 -0400
commitfef0b84cdb5a1e4c32209000cf3739c05639ad2c (patch)
tree01666c515049a7e1c017481b4fa8c2a34df2eac1 /src/frontend/build.ts
parentefbf5faf5b9faaee973fc451e9824e9b0d23b683 (diff)
downloadxesite-fef0b84cdb5a1e4c32209000cf3739c05639ad2c.tar.xz
xesite-fef0b84cdb5a1e4c32209000cf3739c05639ad2c.zip
make build.ts file more parameterized
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'src/frontend/build.ts')
-rw-r--r--src/frontend/build.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/frontend/build.ts b/src/frontend/build.ts
index 07fc548..ed36e2e 100644
--- a/src/frontend/build.ts
+++ b/src/frontend/build.ts
@@ -5,13 +5,7 @@ const result = await esbuild.build({
plugins: [denoPlugin({
importMapURL: new URL("./import_map.json", import.meta.url),
})],
- entryPoints: [
- "./components/ConvSnippet.tsx",
- "./components/MastodonShareButton.tsx",
- "./components/NoFunAllowed.tsx",
- "./components/Video.tsx",
- "./components/WASITerm.tsx",
- ],
+ entryPoints: Deno.args,
outdir: Deno.env.get("WRITE_TO")
? Deno.env.get("WRITE_TO")
: "../../static/xeact",
@@ -19,8 +13,6 @@ const result = await esbuild.build({
splitting: true,
format: "esm",
minifyWhitespace: !!Deno.env.get("MINIFY"),
- inject: ["xeact"],
- jsxFactory: "h",
});
console.log(result.outputFiles);