Bundle & code cleanup (#179)

* Use different YAML solution (391 KB -> 197 KB)

* Update all deps

* Code cleanup
This commit is contained in:
Matt (IPv4) Cowley
2020-10-14 17:12:16 +01:00
committed by GitHub
parent 3aba7956ef
commit 2b8fde7917
5 changed files with 557 additions and 525 deletions

View File

@@ -24,8 +24,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
const yaml = require('js-yaml');
const yaml = require('json-to-pretty-yaml');
export default yamlConf => {
return yaml.safeDump(yamlConf);
return yaml.stringify(yamlConf);
};