open-slide build
Produce a static, deployable build.
open-slide build
# or
npm run buildBuilds every deck under slides/ into a self-contained static site at
dist/. The output has no server requirement — drop it on any static host.
Flags
| Flag | Default | Description |
|---|---|---|
--out-dir <dir> | dist | Write the static build to a custom folder. |
Output
dist/
├── index.html
├── assets/
│ └── ...hashed files...
└── ...Trimming the public surface
If the build is for a public share rather than internal review, you can hide
the slide browser and on-canvas UI in open-slide.config.ts:
const config: OpenSlideConfig = {
build: {
showSlideBrowser: false,
showSlideUi: false,
allowHtmlDownload: false,
},
};See Export for the full set of build knobs.
Deploying under a subpath
If the build won't sit at the domain root (GitHub Pages project sites,
a reverse-proxy folder, an intranet path), set base in
open-slide.config.ts so asset URLs and client-side navigation resolve
against the deployed path:
const config: OpenSlideConfig = {
base: '/my-slides/',
};See Config for details.