Skip to content

Build your personal knowledge base with Trilium Notes

fix(desktop): print failing on upgrade due to cache issues

Elian Doran1f4900dd1ead
diff --git a/apps/client/vite.config.mts b/apps/client/vite.config.mts
index 62d8330403..716ec8b912 100644
--- a/apps/client/vite.config.mts
+++ b/apps/client/vite.config.mts
@@ -95,7 +95,7 @@ export default defineConfig(() => ({
output: {
entryFileNames: (chunk) => {
// We enforce a hash in the main index file to avoid caching issues, this only works because we have the HTML entry point.
- if (chunk.name === "index") {
+ if (chunk.name === "index" || chunk.name === "print") {
return "src/[name]-[hash].js";
}