Create a repo from this template on GitHub
If you prefer to do it manually with a cleaner git history
npx degit toggle-corp/base-vite-app my-vite-app
cd my-vite-app
pnpm install
When you use this template, try to follow the checklist to update your info properly
- Modify or delete the
LICENSE
file - If you don't plan to use GitHub Actions, delete the
.github
directory - Change the
favicon.png
,apple-touch-icon.png
,android-chrome-192x192.png
,android-chrome-512x512.png
,ms-icon-144x144.png
andfavicon.ico
- Change the
title
,description
,icon
,apple touch icon
,mask icon
,ms application tile image
,ms application tile color
, andtheme color
in theindex.html
andvite.config.ts
- Clean up the
READMEs
and remove routes - Change the
name
field in package.json
And, enjoy :)
Run
pnpm dev
and visit http://localhost:5173
To build the App, run
pnpm build
To preview the build
pnpm preview
pnpm dev
- start a development server with hot reloadpnpm build
- build for production. The generated files will be in thedist
folderpnpm preview
- locally preview the production buildpnpm test
- run unit and integration tests related to changed files based on gitpnpm lint
- runs ESLintpnpm stylelint
- runs Stylelintpnpm typecheck
- runs typescript type check