`slidev build --output "$(pwd)/dist"` does not work
Describe the bug
I would like to simply build slides from a directory presentation/slides.md, and receive my result in the root directory ./dist. But somehow, it does nothing — output is generated in relative directory.
I need it for hosting in Github Pages multiple presentation.
Minimal reproduction
-
Created a markdown file at
presentation/slides.mdwith basic Slidev syntax. -
Ran the command:
npx slidev build presentation/slides.md --output dist -
./presentation/distis created, and no output in./dist.
Environment
- Slidev version:
v51.6.0 - Browser: N/A
- OS: Endehavour Arch Linux
When using the slidev build command, note that the correct parameter for specifying the output directory is --out, not --output. The build process resolves paths relative to the input Markdown file's directory (the entry file). To achieve your desired output, use the following command format:
npx slidev build presentation/slides.md --out ../dist