incremental
diff --git a/scripts/build_web_assets.py b/scripts/build_web_assets.py
index bb55694..857880e 100755
--- a/scripts/build_web_assets.py
+++ b/scripts/build_web_assets.py
@@ -177,7 +177,7 @@
dependency_ordered_file_list = remove_duplicates_preserve_order(
dependency_ordered_file_list)
-
+ total_payload_size = 0
for full_filepath in dependency_ordered_file_list:
# make sure none of the files are hidden
with open(full_filepath, 'rb') as input_file:
@@ -205,6 +205,8 @@
sha1_list, file_content, relative_path)
content_dict[full_filepath] = file_content
+ total_payload_size += len(file_content)
+
with open(args.output.replace("cpp", "hpp"), 'w') as hpp_output:
hpp_output.write("#pragma once\n"
"\n"
@@ -296,5 +298,7 @@
)
cpp_output.write("}\n}\n")
+ print("Total static file size: {}KB".format(int(total_payload_size/1024)))
+
if __name__ == "__main__":
main()