Generate meta only if in dev

This commit is contained in:
Adria Navarro 2025-01-15 11:03:48 +01:00
parent 3751886304
commit 322d3cbacb
1 changed files with 6 additions and 4 deletions

View File

@ -128,10 +128,12 @@ async function runBuild(entry, outfile) {
await Promise.all([hbsFiles, mainBuild, oldClientVersions]) await Promise.all([hbsFiles, mainBuild, oldClientVersions])
fs.writeFileSync( if (isDev) {
`dist/${path.basename(outfile)}.meta.json`, fs.writeFileSync(
JSON.stringify((await mainBuild).metafile) `dist/${path.basename(outfile)}.meta.json`,
) JSON.stringify((await mainBuild).metafile)
)
}
console.log( console.log(
"\x1b[32m%s\x1b[0m", "\x1b[32m%s\x1b[0m",