Skip to content

Set routerMode at build time #2542

@c-harding

Description

@c-harding

Is your feature request related to a problem? Please describe.
I am trying to deploy a slidev presentation to a subdirectory of GitHub Pages. This requires a hash routerMode. Rather than making a permanent change to the file, it would be good if I could apply this change at build time, similar to how I can specify dark mode or the theme.

Describe the solution you'd like
A new flag --router-mode=hash in slidev build

Describe alternatives you've considered
Manually updating slides.md in the build pipeline seems dangerous.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions