From 351b4ab13be6b1e43eb286ffac2646d0479ba678 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 24 Jul 2023 04:41:09 +0000
Subject: [PATCH] styling fixes for stacking order and overflow

---
 quartz/bootstrap-cli.mjs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs
index f25484b..aa26ffc 100755
--- a/quartz/bootstrap-cli.mjs
+++ b/quartz/bootstrap-cli.mjs
@@ -79,6 +79,11 @@
     default: 8080,
     describe: "port to serve Quartz on",
   },
+  bundleInfo: {
+    boolean: true,
+    default: false,
+    describe: "show detailed bundle information",
+  },
 }
 
 function escapePath(fp) {
@@ -284,6 +289,7 @@
         outfile: path.join("quartz", cacheFile),
         bundle: true,
         keepNames: true,
+        minify: true,
         platform: "node",
         format: "esm",
         jsx: "automatic",
@@ -315,6 +321,7 @@
                     sourcefile,
                   },
                   write: false,
+                  minify: true,
                   bundle: true,
                   platform: "browser",
                   format: "esm",
@@ -338,7 +345,7 @@
         process.exit(1)
       })
 
-    if (argv.verbose) {
+    if (argv.bundleInfo) {
       const outputFileName = "quartz/.quartz-cache/transpiled-build.mjs"
       const meta = result.metafile.outputs[outputFileName]
       console.log(
@@ -346,6 +353,7 @@
           meta.bytes,
         )})`,
       )
+      console.log(await esbuild.analyzeMetafile(result.metafile, { color: true }))
     }
 
     const { default: buildQuartz } = await import(cacheFile)

--
Gitblit v1.10.0