From 5f41699fac0ee0e7a1a5e068f3be9f7e8cdcf4d8 Mon Sep 17 00:00:00 2001 From: Daniel Upshaw Date: Sat, 13 Oct 2018 23:50:31 -0400 Subject: [PATCH] Use tabs instead of spaces for beautify configuration This could save around 20% of bandwidth for sending the bundled files: https://madskristensen.net/blog/performance-of-tabs-vs-spaces-in-html-files/ Doesn't enforce a tab width Won't break any deployments --- bundler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundler.js b/bundler.js index 11f0f98..b479d41 100644 --- a/bundler.js +++ b/bundler.js @@ -166,7 +166,7 @@ function bundle(entryfilepath, options = {}) { if (!(options.disablebeautify == true)) { bundled = beautify(bundled, { - indent_size: 4, + indent_with_tabs: true, end_with_newline: true, preserve_newlines: false }) @@ -174,5 +174,5 @@ function bundle(entryfilepath, options = {}) { return bundled } - +/ module.exports = { bundle: bundle }