@mythosthesia/reveal-course-preset
v0.1.5
Published
Preset that includes everything that the mythosthesia reveal.js slides need.
Downloads
6
Readme
@mythosthesia/reveal-course-preset
Preset that includes everything that the mythosthesia reveal.js slides need.
Install
npm install @mythosthesia/reveal-course-preset
Usage
- Set your
vite.config.js
to:
import { defineConfig } from "vite";
import { vitePlugins } from "@mythosthesia/reveal-course-preset/vite-plugins.js";
export default defineConfig({
base: '/rust-lesson-1',
plugins: vitePlugins,
});
- Add these links to your
<head>
:
<script type="module">
import "reveal.js/dist/reveal.css";
import "reveal.js/dist/theme/black.css";
import "reveal.js/plugin/highlight/monokai.css";
import "@mythosthesia/reveal-course-preset/styles.css";
</script>
- Set your
reveal.js
config to:
<script type="module">
import Reveal from "reveal.js";
import { plugins, config } from "@mythosthesia/reveal-course-preset";
let deck = new Reveal();
deck.initialize(config);
</script>
All set! Now you will be able to use all the features from these plugins: