Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-pages-vite

Template for using Vite with GitHub Pages

GitHub Action

This template includes a GitHub Action workflow at .github/workflows/main.yml. The Action builds the Vite app to /dest. It then deploys the contents of /dest to production at https://user.github.io/repository

Vite Config

When deploying a repository to GitHub Pages, the repository name will by default become part of the URL path. (e.g. https://user.github.io/repository ) Vite has been configured in vite.config.js in order to dynamically understand this path based on a flag in the GitHub Actions build environment. During local development, Vite will assume a root of / but when building for produciton, it will instead use /repository/ as the root.

How to Use

  • Make a new repository from this template.
  • In the Rpository Settings, go to Pages
  • Under Build and Deployment change the Source to GitHub Actions
  • Now, when you push changes they will be auto deployed to https://user.github.io/repository

About

Convert text to vector

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages