mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-11-05 10:46:10 +08:00
Bundle & code cleanup (#179)
* Use different YAML solution (391 KB -> 197 KB) * Update all deps * Code cleanup
This commit is contained in:
committed by
GitHub
parent
3aba7956ef
commit
2b8fde7917
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user