Merge pull request #2786 from element-hq/quenting/docker-cache-headers

Precompress assets and set the right cache headers
This commit is contained in:
fkwp
2024-11-15 08:52:12 +01:00
committed by GitHub
5 changed files with 26 additions and 18 deletions

View File

@@ -6,6 +6,7 @@ Please see LICENSE in the repository root for full details.
*/
import { defineConfig, loadEnv } from "vite";
import { compression } from "vite-plugin-compression2";
import svgrPlugin from "vite-plugin-svgr";
import htmlTemplate from "vite-plugin-html-template";
import { codecovVitePlugin } from "@codecov/vite-plugin";
@@ -38,6 +39,10 @@ export default defineConfig(({ mode }) => {
bundleName: "element-call",
uploadToken: process.env.CODECOV_TOKEN,
}),
compression({
exclude: [/config.json/],
}),
];
if (