From cfa84079677373565a3aa55c328e878dc5a58097 Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Sat, 26 Jun 2021 20:00:47 -0700 Subject: [PATCH] [cubing/solve] Remove `worker-inside-generated-string.js` intermediate. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This prevents it from being in the published build, which saves ≈1MB on disk. --- script/build.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/build.js b/script/build.js index 69a6b5d2d..9b522f578 100644 --- a/script/build.js +++ b/script/build.js @@ -63,6 +63,9 @@ const stringWrappingPlugin = { .replace(/"/g, '\\"') .replace(/\n/g, "\\n")}";`, async () => { + await execPromise( + "rm src/cubing/solve/worker-inside-generated.js", + ); console.log("updated worker-inside-generated-string.js"); resolve(); },