From 322d3cbacb8a35c5ee624ed971e0dc411458cec5 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 15 Jan 2025 11:03:48 +0100 Subject: [PATCH] Generate meta only if in dev --- scripts/build.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index e8e52d267c..0106421fe7 100755 --- a/scripts/build.js +++ b/scripts/build.js @@ -128,10 +128,12 @@ async function runBuild(entry, outfile) { await Promise.all([hbsFiles, mainBuild, oldClientVersions]) - fs.writeFileSync( - `dist/${path.basename(outfile)}.meta.json`, - JSON.stringify((await mainBuild).metafile) - ) + if (isDev) { + fs.writeFileSync( + `dist/${path.basename(outfile)}.meta.json`, + JSON.stringify((await mainBuild).metafile) + ) + } console.log( "\x1b[32m%s\x1b[0m",