Skip to content

Commit e1828e1

Browse files
committed
Minify JSON files
[GitHub] This commit resolves #1735.
1 parent d37dad1 commit e1828e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/convert-data-file.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ function convertDataFile({fromFile, toFile, toFileType = 'json'}) {
5353

5454
function processYaml(fileContents) {
5555
let loaded = yaml.safeLoad(fileContents)
56-
return JSON.stringify({data: loaded}, null, 2)
56+
return JSON.stringify({data: loaded}, null, 0)
5757
}
5858

5959
function processMarkdown(fileContents) {
60-
return JSON.stringify({text: fileContents}, null, 2)
60+
return JSON.stringify({text: fileContents}, null, 0)
6161
}
6262

6363
function processCSS(fileContents) {
64-
return JSON.stringify({css: fileContents}, null, 2)
64+
return JSON.stringify({css: fileContents}, null, 0)
6565
}

0 commit comments

Comments
 (0)