https://github.com/marcoworms/react-tailwind-quickstart
just a template for quickstarting react+tailwind projects
https://github.com/marcoworms/react-tailwind-quickstart
Last synced: 3 months ago
JSON representation
just a template for quickstarting react+tailwind projects
- Host: GitHub
- URL: https://github.com/marcoworms/react-tailwind-quickstart
- Owner: MarcoWorms
- Created: 2025-02-04T03:59:13.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-02-04T04:06:39.000Z (11 months ago)
- Last Synced: 2025-02-04T05:18:45.172Z (11 months ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
## Available Scripts
In your project directory, you can run:
```bash
# Starts development server with Hot Module Replacement (HMR)
"dev": "vite",
# Builds production-optimized bundle for deployment
"build": "vite build",
# Lints code using ESLint rules
"lint": "eslint .",
# Previews production build locally before deployment
"preview": "vite preview"
```
### Key Differences
- `dev`: Development server with instant updates
- `preview`: Production preview of built assets
- Always run `build` before `preview` to test latest changes
# Running the project locally to develop and test
```bash
npm run dev
```
# Linting the project
```bash
npm run lint
```
# Building and previewing production build with minification and tree-shaking
```bash
npm run build && npm run preview
```