Skip to content

Commit

Permalink
fix(demo): disable minify due to bug in bun build
Browse files Browse the repository at this point in the history
Enabling minification causes elements to be stripped from the <head>,
including our CSS.

oven-sh/bun#16335
  • Loading branch information
incognitojam committed Jan 25, 2025
1 parent 910f32e commit 6317c64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const build = await Bun.build({
entrypoints: ["./src/index.html"],
outdir: "./dist",
sourcemap: "linked",
minify: true,
// https://github.com/oven-sh/bun/issues/16335
// minify: true,
});

const outputs = build.outputs.map(({ path, kind, size }) => ({ path, kind, "size (KiB)": (size / 1024).toFixed(1) }));
Expand Down

0 comments on commit 6317c64

Please sign in to comment.