https://github.com/rayyannafees/viteno
https://github.com/rayyannafees/viteno
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rayyannafees/viteno
- Owner: RayyanNafees
- Created: 2024-02-13T13:06:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-13T13:17:43.000Z (almost 2 years ago)
- Last Synced: 2025-01-18T14:27:49.335Z (12 months ago)
- Language: TypeScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React example
This example shows how to run [Vite](https://vitejs.dev) and React with deno-vite-plugin.
To start this example, run:
```bash
$ deno task dev
```
Refer to the [`./deno.json`](./deno.json) for the other tasks.
## Available tasks
- `deno task dev`: start dev server
- `deno task build`: build for production
- `deno task preview`: preview production build
## How to add a dependency
Just add the dependency to imports field in `deno.json`.
```json
{
"imports": {
"wouter": "https://esm.sh/wouter@2.12.0"
}
}
```
And import it.
```tsx
import * as wouter from "wouter";
```
Or you can import from URL directly.
```tsx
import * as wouter from "https://esm.sh/wouter@2.12.0";
```