-
Notifications
You must be signed in to change notification settings - Fork 0
Development Setup
Kenneth Yang edited this page Dec 17, 2022
·
5 revisions
These are the tools I used and the steps I took to create a working environment to build and develop this website. This includes what packages I installed and any special notes for importing and/or setup.
npm create vite@latest
- Using
react-swc-ts
template- Chose React over other frameworks for compatibility with many popular libraries
- Chose SWC over Babel for faster compilation
- Chose TypeScript over JavaScript for type safety
- Installed
@vitejs/plugin-legacy
to support older browsersnpm i -D @vitejs/plugin-legacy
- Added to
vite.config.ts
:plugins: [ // other plugins legacy({ targets: ['defaults', 'not IE 11'] }) ];
- Added
base: '/honors-portfolio/
tovite.config.ts
to support GitHub Pages