/parcel-static-site-generator-template

A template repo to set up markdown based static site generation for Parcel.js V2

Primary LanguageCSS

Parcel static site generator template

This is a starter project to build a barebones static site generator with Parcel with minimal dependencies.

Main bundling package used:

  • Parcel v2

Markdown parsing:

  • posthtml-import
  • posthtml-markdownit

Just the essentials :)

  • markdown-it-emoji
  • markdown-it-highlightjs (more styles)

Launch development environment

# Install dependencies
yarn
# Then launch the preview
yarn dev

Build command

yarn dev

Add live reload to HTML page

<script>
   if (module.hot) {
         module.hot.accept(() => location.reload());
   }
</script>