Made app.dpd save as prettified JSON

This commit is contained in:
DallonF
2012-07-05 13:45:31 -07:00
parent 46bd65985b
commit 17a90f165e

View File

@@ -38,7 +38,7 @@ module.exports.loadConfig = function(basepath, fn) {
*/
module.exports.saveConfig = function(resources, basepath, fn) {
var resourcesPath = path.join(basepath, '/app.dpd')
, json = JSON.stringify(resources);
, json = JSON.stringify(resources, null, '\t');
fs.writeFile(resourcesPath, json, 'utf-8', function(err) {
if (err) return fn(err);