A template for React using vite
yarn install
(or npm install
for npm)Development
yarn start
Production
yarn build
yarn prod
/dist/
All commands
Command | Description |
---|---|
yarn start |
Build app continuously (HMR enabled) |
yarn prod |
Build app once (HMR disabled) to /dist/ |
yarn build |
Build app to /dist/ |
Note: replace yarn
with npm
in package.json
if you use npm.