658 B
658 B
Fresh vite plugin
Vite plugin for Fresh.
Usage
- Run
deno install jsr:@paulaboks/sweet-vite npm:vite - Ensure that your
deno.jsonhas thefreshimport mapping:
{
"imports": {
"sweet": "jsr:@paulaboks/sweet"
}
}
- Update your
vite.config.tsfile:
import { defineConfig } from "vite";
+ import { fresh } from "@paulaboks/sweet-vite";
export default defineConfig({
plugins: [
+ fresh(),
],
});
- Update your deno tasks respectively:
- Dev:
vite - Build:
vite build
More information on the Fresh documentation .