From c4db71f96f3a8b22ad8697cdfc83e0f29543376d Mon Sep 17 00:00:00 2001 From: Cameron Yick Date: Thu, 30 May 2024 21:11:12 -0400 Subject: [PATCH] build: disable minification so that sourcemaps are readable --- scripts/build-editor-preview.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build-editor-preview.sh b/scripts/build-editor-preview.sh index 9a89335b28..5bcb542c0b 100755 --- a/scripts/build-editor-preview.sh +++ b/scripts/build-editor-preview.sh @@ -31,5 +31,6 @@ cat < public/spec/vega/index.json EOF # Build the editor site in the dist folder -# Disable sourcemaps as they exceed 25 MB in size -yarn run build:only --public-url / --no-source-maps +# Disable minification to make it easier to debug, and because sourcemaps +# exceed 25 MB limit on cloudflare +yarn run build:only --public-url / --no-optimize