https://github.com/bartlomieju/vite-deno-example
Example of using Vite with Deno
https://github.com/bartlomieju/vite-deno-example
Last synced: about 1 month ago
JSON representation
Example of using Vite with Deno
- Host: GitHub
- URL: https://github.com/bartlomieju/vite-deno-example
- Owner: bartlomieju
- Created: 2022-09-21T20:28:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-04T11:44:50.000Z (over 1 year ago)
- Last Synced: 2025-04-22T23:09:01.239Z (about 1 month ago)
- Language: Vue
- Homepage: https://vite-deno-example.deno.dev
- Size: 62.5 KB
- Stars: 164
- Watchers: 2
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vite + Deno
This is an example repo of running Vite with Deno.
You can see live site at: https://vite-deno-example.deno.dev
This repo is based on a `deno-vue` template from `create-vite-extra`:
```
$ deno run -A npm:create-vite-extra --template deno-vue
```## Notes
- You need to use `.mjs` or `.mts` extension for the `vite.config.[ext]` file.
## Papercuts
Currently there's a "papercut" for Deno users:
- peer dependencies need to be referenced in `vite.config.js` - in this example
it is only `vue` package that needs to be referenced## Running
You need to have Deno v1.28 or later intalled to run this repo.
Start a dev server:
```
$ deno task dev
```## Deploy
Build production assets:
```
$ deno task build
```This repository uses
[Deno Deploy and Git integration](https://deno.com/deploy/docs/projects#git-integration),
where deployment is happening as part of the CI pipeline.