feat: support config auto save

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-05-15 14:28:40 +08:00
parent 25aef3ed62
commit 43d9b97347
5 changed files with 53 additions and 24 deletions

View File

@ -10,7 +10,7 @@ export class YamlPluginConfig implements PluginConfigLoader {
return yaml.safeLoad(content);
}
dump(variable: any): string {
return yaml.safeDump(variable);
return yaml.safeDump(variable, { skipInvalid: true });
}
}