.esm suffix for module bundle, marked/highlight.js are installed via npm

This commit is contained in:
Hakim El Hattab
2020-05-04 10:39:37 +02:00
parent a4cb3307bb
commit 60cd098c8d
42 changed files with 270 additions and 2154 deletions

View File

@ -285,9 +285,9 @@
</div>
<script type="module">
import Reveal from '../js/reveal.js'
import Markdown from '../plugin/markdown/markdown.js'
import Highlight from '../plugin/highlight/highlight.js'
import Reveal from '../dist/reveal.esm.js'
import Markdown from '../dist/plugin/markdown.esm.js'
import Highlight from '../dist/plugin/highlight.esm.js'
let deck1 = new Reveal( document.querySelector( '.deck1' ), { plugins: [ Markdown ] })
deck1.addEventListener( 'ready', function() {