Skip to content

Template for creating React apps using Vite and hosting on GitHub Pages

Notifications You must be signed in to change notification settings

Hynwar/react-gh-pages-template

Repository files navigation

React + GitHub Pages using Vite

This template provides a minimal setup to get React working with GitHub Pages using Vite as the build tool.

Remember to update the vite.config.js and change the base path to your repo name

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
   plugins: [react()],
+  base: '/[your-repo-name]/'
})

About

Template for creating React apps using Vite and hosting on GitHub Pages

Resources

Stars

Watchers

Forks