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
- Host: GitHub
- URL: https://github.com/dawidprosba/blogpost-hugo-vite-preact-hmr
- Owner: dawidprosba
- License: mit
- Created: 2022-06-10T07:46:03.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-06T18:19:33.000Z (almost 3 years ago)
- Last Synced: 2024-11-06T11:55:15.034Z (8 months ago)
- Topics: hugo, preact, vitejs
- Language: TypeScript
- Homepage:
- Size: 104 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```