open-slide

open-slide build

Produce a static, deployable build.

open-slide build
# or
npm run build

Builds 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

FlagDefaultDescription
--out-dir <dir>distWrite 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.

On this page