hellokaton / vite-react-mpa-example

React + Vite multi page application example

Home Page:https://vite-react-mpa.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vite-react-mpa-example

This is an example of multi page application using React and Vite, which includes router usage and packaging configurations.

Usage

local env preview

yarn run dev

You can access the following path verify:


build to dist

yarn run build

The generated directory is as follows

 ~/react/vite-react-mpa-example/dist
.
├── admin
│   └── index.html
├── assets
│   ├── admin.26a797b8.css
│   ├── admin.f723a3c2.js
│   ├── favicon.17e50649.svg
│   ├── index.458f9883.css
│   ├── index.6bb9e804.js
│   ├── index.bff09771.js
│   ├── index.ed209ab7.css
│   ├── logo.ecc203fb.svg
│   └── vendor.763bc56e.js
└── index.html

2 directories, 11 files

I have the project deployed on vercel, which you can try to access

Further Info

About

React + Vite multi page application example

https://vite-react-mpa.vercel.app


Languages

Language:TypeScript 68.0%Language:CSS 21.5%Language:HTML 10.4%