Merged in feature/pretty-print (pull request #2)
Добавил переносов строк и пробелов в сериализацию конфигурации на страницу
This commit is contained in:
commit
e52bf6ae3f
@ -5,7 +5,7 @@ const registerPartialsWithExtensions = require('./utils/registerPartialsWithExte
|
|||||||
|
|
||||||
function toJSON (obj) {
|
function toJSON (obj) {
|
||||||
if (typeof obj === 'object') {
|
if (typeof obj === 'object') {
|
||||||
return JSON.stringify(obj)
|
return JSON.stringify(obj, null, 4)
|
||||||
}
|
}
|
||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user