From 011304f1006574f495eff5a59b207cfe0b12ad93 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sun, 22 Jan 2023 23:52:06 +0100 Subject: [PATCH] added the vite-plugin-rewrite-all dependency, as a workaround for https://github.com/vitejs/vite/issues/2415 This will be solved if https://github.com/vitejs/vite/pull/2634 is merged --- webclient/package.json | 1 + webclient/vite.config.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/webclient/package.json b/webclient/package.json index aa2ecfe94..41de44a41 100644 --- a/webclient/package.json +++ b/webclient/package.json @@ -39,6 +39,7 @@ "typescript": "^4.9.4", "vite": "^4.0.4", "vite-plugin-md": "^0.21.5", + "vite-plugin-rewrite-all": "^1.0.1", "vue-i18n": "^9.2.2", "vue-tsc": "^1.0.22" }, diff --git a/webclient/vite.config.ts b/webclient/vite.config.ts index ce2903cdc..655165cce 100644 --- a/webclient/vite.config.ts +++ b/webclient/vite.config.ts @@ -6,6 +6,7 @@ import VueI18nPlugin from "@intlify/unplugin-vue-i18n/vite"; import Markdown from "vite-plugin-md"; import link from "@yankeeinlondon/link-builder"; import path from "path"; +import pluginRewriteAll from "vite-plugin-rewrite-all"; // https://vitejs.dev/config/ export default defineConfig({ @@ -42,6 +43,9 @@ export default defineConfig({ Markdown({ builders: [link()], }), + //The next one is included due to https://github.com/vitejs/vite/issues/2415 + // otherwise the router won't serve the details pages, as they include dots + pluginRewriteAll(), ], resolve: { alias: {