Generate meta only if in dev
This commit is contained in:
parent
3751886304
commit
322d3cbacb
|
@ -128,10 +128,12 @@ async function runBuild(entry, outfile) {
|
||||||
|
|
||||||
await Promise.all([hbsFiles, mainBuild, oldClientVersions])
|
await Promise.all([hbsFiles, mainBuild, oldClientVersions])
|
||||||
|
|
||||||
|
if (isDev) {
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
`dist/${path.basename(outfile)}.meta.json`,
|
`dist/${path.basename(outfile)}.meta.json`,
|
||||||
JSON.stringify((await mainBuild).metafile)
|
JSON.stringify((await mainBuild).metafile)
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
"\x1b[32m%s\x1b[0m",
|
"\x1b[32m%s\x1b[0m",
|
||||||
|
|
Loading…
Reference in New Issue