1
0
Fork 0

fix: Issue with build templates

This commit is contained in:
Joost De Cock 2022-10-15 14:33:54 +02:00
parent 6dadf62370
commit c959858e6c
163 changed files with 8897 additions and 9074 deletions

View file

@ -24,11 +24,12 @@ const options = {
}
// Let esbuild generate the build
let result = null(async () => {
result = await esbuild.build(options).catch(() => process.exit(1))
const build = async () => {
const result = await esbuild.build(options).catch(() => process.exit(1))
if (process.env.VERBOSE) {
const info = await esbuild.analyzeMetafile(result.metafile)
console.log(info)
}
})()
}
build()