Skip to content

Commit

Permalink
added the vite-plugin-rewrite-all dependency, as a workaround for vit…
Browse files Browse the repository at this point in the history
…ejs/vite#2415

This will be solved if vitejs/vite#2634 is merged
  • Loading branch information
CommanderStorm committed Mar 11, 2023
1 parent b7ad1f8 commit 011304f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions webclient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 4 additions & 0 deletions webclient/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 011304f

Please sign in to comment.