Files
2026-11-11 11:45:20 -03:00
..
2026-11-11 11:45:20 -03:00
2026-11-11 11:45:20 -03:00
2026-11-11 11:45:20 -03:00
2026-11-11 11:45:20 -03:00
2026-11-11 11:45:20 -03:00

Fresh vite plugin

Vite plugin for Fresh.

Usage

  1. Run deno install jsr:@paulaboks/sweet-vite npm:vite
  2. Ensure that your deno.json has the fresh import mapping:
{
  "imports": {
    "sweet": "jsr:@paulaboks/sweet"
  }
}
  1. Update your vite.config.ts file:
  import { defineConfig } from "vite";
+ import { fresh } from "@paulaboks/sweet-vite";
  
  export default defineConfig({
    plugins: [
+     fresh(),
    ],
  });
  1. Update your deno tasks respectively:
  • Dev: vite
  • Build: vite build

More information on the Fresh documentation .