amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

WASM compression

Open ckampfe opened this issue 5 years ago • 5 comments

Amplify seems to be compressing my js assets with gzip by default. I also have wasm assets in my application, and Amplify does not seem to compress wasm, which is a bummer, as wasm blobs can be quite large. I have searched the Amplify console, docs and elsewhere and I am unable to find anything about how I would be able to get Amplify to compress wasm. Thank you!

ckampfe avatar Apr 19 '20 05:04 ckampfe

@ckampfe do you have an example link on Amplify you can share with the WASM blob?

swaminator avatar Apr 21 '20 21:04 swaminator

@swaminator https://www.rasterize.live/ is my app, hosted on amplify. If you monitor the network tab, the wasm blob is called rat.wasm.

ckampfe avatar May 01 '20 21:05 ckampfe

Also, you can see the full source of the app here: https://github.com/ckampfe/rat Not sure if that is useful.

ckampfe avatar May 01 '20 21:05 ckampfe

Amplify do not compress files greather than 10Mb... are your wasm files larger than that?

cacharrin avatar Jun 08 '22 16:06 cacharrin

is there a way to increase the amplify wasm limit? I have a 40mb wasm file that needs compression.

cookiejest avatar Jun 02 '25 00:06 cookiejest