An open API service indexing awesome lists of open source software.

https://github.com/dawidprosba/blogpost-hugo-vite-preact-hmr

Example implementation of Vite and Preact with Hugo application
https://github.com/dawidprosba/blogpost-hugo-vite-preact-hmr

hugo preact vitejs

Last synced: 2 months ago
JSON representation

Example implementation of Vite and Preact with Hugo application

Awesome Lists containing this project

README

        

# Blogpost Hugo, Vite and Preact + HMR
Project is an example implementation of [Vite](https://vitejs.dev/) and [Preact](https://preactjs.com/) with [Hugo](https://gohugo.io/).

# Implemented features
- Building project using Hugo with Vite (`npm run build`)
- Running project locally (`npm run dev`)
- Integration Hugo with Vite using [Vite Hugo plugin](https://www.npmjs.com/package/vite-hugo-plugin)
- Example Preact application with HMR support using [Prefresh](https://github.com/preactjs/prefresh).

# Getting started

1. Clone repository
```
https://github.com/DcBD/blogpost-hugo-vite-preact-hmr.git
```
2. Initialize submodules
```
git submodule update --init --recursive
```
3. Run project in development mode
```
npm run dev
```
4. Build project for production
```
npm run build
```