Skip to content

Commit 63f0b1b

Browse files
committed
chore: better comments
1 parent 047643f commit 63f0b1b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

vite.config.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ function rewriteHtmlLinksPlugin(baseUrl) {
6969
}
7070
}
7171

72-
// vite automatically adds Content-Encoding: gzip to .gz files so the client
73-
// automatically decompresses the file (github pages instead just sends the
72+
// vite automatically adds "Content-Encoding: gzip" to .gz files so the client
73+
// automatically decompresses the file. GitHub pages instead just sends the
7474
// file without that header so an actually compressed file arrives to the
75-
// client)
75+
// client.
76+
// The following "gzipDevFix" vite plugin manually sends .gz files without that
77+
// header to correctly use this during development.
7678

7779
/** @type {(baseUrl: string) => import('vite').Plugin} */
7880
function gzipDevFix() {

0 commit comments

Comments
 (0)