/reveal-vite

Minimal reveal.js scaffolding using vite.

Primary LanguageHTMLApache License 2.0Apache-2.0

Reveal.js with Vite

Minimal reveal.js scaffolding using vite.

Using the reveal.js API rather than a clone of the reveal.js repo (which is their recommended installation, but not my preferred one).

Inspired by https://glebbahmutov.com/blog/reveal-vite/

To use as template

Click the button "Use this template". This will create a copy of this repository in your own github account. Give your new repo a suitable name. Subsequently, to edit and preview:

git clone <your new repo>
cd reveal-vite
yarn

# Modify package.json:
# change the name field to the name you chose for your repo

# To start a development server
yarn dev

# To build for production / GH pages
yarn build

To reproduce

# Initialize a vite project
yarn create vite reveal-vite --template vanilla

# Enter the project directory
cd reveal-vite

# Install dependencies
yarn

# Add reveal.js
yarn add reveal.js

# Add version control
git init
git add -A
git commit -m "Inital commit"

# Replace the body in index.html with reveal.js elements.
# Replace the content of main.js with its current content.