We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 047643f commit 63f0b1bCopy full SHA for 63f0b1b
vite.config.js
@@ -69,10 +69,12 @@ function rewriteHtmlLinksPlugin(baseUrl) {
69
}
70
71
72
-// vite automatically adds Content-Encoding: gzip to .gz files so the client
73
-// automatically decompresses the file (github pages instead just sends the
+// vite automatically adds "Content-Encoding: gzip" to .gz files so the client
+// automatically decompresses the file. GitHub pages instead just sends the
74
// file without that header so an actually compressed file arrives to the
75
-// client)
+// client.
76
+// The following "gzipDevFix" vite plugin manually sends .gz files without that
77
+// header to correctly use this during development.
78
79
/** @type {(baseUrl: string) => import('vite').Plugin} */
80
function gzipDevFix() {
0 commit comments