diff --git a/packages/wasm-miniscript/Makefile b/packages/wasm-miniscript/Makefile index c0141ed..1cc1c17 100644 --- a/packages/wasm-miniscript/Makefile +++ b/packages/wasm-miniscript/Makefile @@ -13,9 +13,17 @@ define REMOVE_GITIGNORE find $(1) -name .gitignore -delete endef +define SHOW_WASM_SIZE + @find $(1) -name "*.wasm" -exec gzip -k {} \; + @find $(1) -name "*.wasm" -exec du -h {} \; + @find $(1) -name "*.wasm.gz" -exec du -h {} \; +endef + define BUILD + rm -rf $(1) $(call WASM_PACK_COMMAND,$(1),$(2)) $(call REMOVE_GITIGNORE,$(1)) + $(call SHOW_WASM_SIZE,$(1)) endef .PHONY: js/wasm/