Skip to content

Commit 60f55a3

Browse files
makingclaude
andauthored
Add wasm to default file extensions (#3)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 14cbccd commit 60f55a3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ All configuration parameters can be set either in the plugin `<configuration>` b
100100

101101
The following text-based file extensions are compressed by default:
102102

103-
`css`, `csv`, `htm`, `html`, `js`, `json`, `map`, `mjs`, `mts`, `svg`, `ts`, `txt`, `webmanifest`, `xml`, `yaml`, `yml`
103+
`css`, `csv`, `htm`, `html`, `js`, `json`, `map`, `mjs`, `mts`, `svg`, `ts`, `txt`, `wasm`, `webmanifest`, `xml`, `yaml`, `yml`
104104

105105
These are common web resource types that benefit significantly from compression. Binary formats (images, fonts, etc.) are already compressed and should not be included.
106106

src/main/java/am/ik/maven/compression/StaticResourceCompressor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class StaticResourceCompressor {
3838
* resource types that benefit from compression.
3939
*/
4040
public static final Set<String> DEFAULT_EXTENSIONS = Set.of("css", "csv", "htm", "html", "js", "json", "map", "mjs",
41-
"mts", "svg", "ts", "txt", "webmanifest", "xml", "yaml", "yml");
41+
"mts", "svg", "ts", "txt", "wasm", "webmanifest", "xml", "yaml", "yml");
4242

4343
private final Set<String> extensions;
4444

0 commit comments

Comments
 (0)