remove white space in tldr files for prod (#985)

This commit is contained in:
Alex Kim 2022-09-19 13:25:35 +05:00 committed by GitHub
parent 914de946ea
commit 8f2dba8311
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,8 @@ export async function saveToFileSystem(
}
// Serialize to JSON
const json = JSON.stringify(file, null, 2)
const json =
process.env.NODE_ENV === 'production' ? JSON.stringify(file) : JSON.stringify(file, null, 2)
// Create blob
const blob = new Blob([json], {