You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5a26cda
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,6 +245,14 @@ WebAssembly threads, service workers, and cross-origin isolation require a secur
245
245
246
246
If assets are hosted on another origin, that origin must allow CORS and send `Cross-Origin-Resource-Policy: cross-origin` or an equivalent policy accepted by the embedding page.
247
247
248
+
Production builds retain every uncompressed runtime file and also create Brotli
249
+
sidecars for everything under `wasm/` and for other JavaScript files of at least
250
+
128 KiB. Configure the web server to serve `file.br` for a request to `file` when
251
+
the client advertises `Accept-Encoding: br`, with the original content type,
252
+
`Content-Encoding: br`, and `Vary: Accept-Encoding`. Vite preview does this
253
+
automatically. The uncompressed files remain the source of truth and the fallback
254
+
for hosts that do not support precompressed sidecars.
255
+
248
256
## Build and test
249
257
250
258
Installing dependencies downloads the latest verified prebuilt clangd artifacts
0 commit comments