Rename setting beautify to minify
parent
e4b5c1d0f9
commit
e73123e2ee
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"destination": "extensions/config/files/",
|
||||
"beautify": true,
|
||||
"minify": false,
|
||||
"exclude": []
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue