remove white space in tldr files for prod (#985)
This commit is contained in:
parent
914de946ea
commit
8f2dba8311
1 changed files with 2 additions and 1 deletions
|
@ -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], {
|
||||
|
|
Loading…
Reference in a new issue