From e73123e2eed800235fc424c5e8c024ee097b15d8 Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Fri, 19 Mar 2021 22:50:12 +0100 Subject: [PATCH] Rename setting beautify to minify --- config/config.json | 2 +- services/config.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/config/config.json b/config/config.json index 618bde1..f66e271 100644 --- a/config/config.json +++ b/config/config.json @@ -1,5 +1,5 @@ { "destination": "extensions/config/files/", - "beautify": true, + "minify": false, "exclude": [] } diff --git a/services/config.js b/services/config.js index bd582dc..e2b07c5 100644 --- a/services/config.js +++ b/services/config.js @@ -12,7 +12,7 @@ const util = require('util'); module.exports = { writeConfigFile: async (configName, fileContents) => { const json = - strapi.plugins.config.config.beautify ? + !strapi.plugins.config.config.minify ? JSON.stringify(JSON.parse(fileContents), null, 2) : fileContents; @@ -38,9 +38,6 @@ module.exports = { const coreStoreAPI = strapi.query('core_store'); const fileContents = await strapi.plugins.config.services.config.readConfigFile(configName); - // If there is no corresponding config file we should not try to import. - if (!fileContents) return; - try { const configExists = await strapi .query('core_store')