Optimize scouting binary size.
babel was not stripping comments, which were doubling the size.
Also enabled a minified flag in babel which had some further savings.
Change-Id: Ia5a36825520bb7cbb04c67d46dd3b3bc89b53b87
Signed-off-by: Alex Perry <alex.perry96@gmail.com>
diff --git a/scouting/www/BUILD b/scouting/www/BUILD
index 99dcde6..675a4fb 100644
--- a/scouting/www/BUILD
+++ b/scouting/www/BUILD
@@ -42,6 +42,8 @@
"$(execpath :main_bundle)",
"--no-babelrc",
"--source-maps",
+ "--minified",
+ "--no-comments",
"--plugins=@angular/compiler-cli/linker/babel",
"--out-dir",
"$(@D)",