Skip to content

Commit

Permalink
Compress Wasm files
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-hansen authored and marlonbaeten committed Dec 4, 2023
1 parent e46d4bd commit 28f8c3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions memory-serve-macros/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const COMPRESS_TYPES: &[&str] = &[
"application/xml",
"text/xml",
"image/svg+xml",
"application/wasm",
];

fn path_to_route(base: &Path, path: &Path) -> String {
Expand Down
1 change: 1 addition & 0 deletions memory-serve/src/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub const COMPRESS_TYPES: &[&str] = &[
"application/xml",
"text/xml",
"image/svg+xml",
"application/wasm",
];

const BROTLI_ENCODING: &str = "br";
Expand Down

0 comments on commit 28f8c3d

Please sign in to comment.