Start renaming
This commit is contained in:
@@ -10,7 +10,7 @@ disk for optimal performance with
|
||||
headers.
|
||||
|
||||
```ts main.ts
|
||||
import { staticFiles } from "fresh";
|
||||
import { staticFiles } from "sweet";
|
||||
|
||||
const app = new App()
|
||||
.use(staticFiles());
|
||||
@@ -55,7 +55,7 @@ first directory in the array takes precedence.
|
||||
|
||||
```ts vite.config.ts
|
||||
import { defineConfig } from "vite";
|
||||
import { fresh } from "@fresh/plugin-vite";
|
||||
import { fresh } from "@paulaboks/sweet-vite";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
@@ -99,7 +99,7 @@ Use the `asset()` function to add caching headers manually. It will be served
|
||||
with a cache lifetime of one year.
|
||||
|
||||
```tsx routes/about.tsx
|
||||
import { asset } from "fresh/runtime";
|
||||
import { asset } from "sweet/runtime";
|
||||
|
||||
export default function About() {
|
||||
// Adding caching headers manually
|
||||
@@ -110,7 +110,7 @@ export default function About() {
|
||||
For `<img>` tags with a `srcset` attribute, use `assetSrcSet()`:
|
||||
|
||||
```tsx routes/gallery.tsx
|
||||
import { assetSrcSet } from "fresh/runtime";
|
||||
import { assetSrcSet } from "sweet/runtime";
|
||||
|
||||
export default function Gallery() {
|
||||
return (
|
||||
@@ -139,7 +139,7 @@ deno add -D npm:vite-imagetools
|
||||
|
||||
```ts vite.config.ts
|
||||
import { defineConfig } from "vite";
|
||||
import { fresh } from "@fresh/plugin-vite";
|
||||
import { fresh } from "@paulaboks/sweet-vite";
|
||||
import { imagetools } from "vite-imagetools";
|
||||
|
||||
export default defineConfig({
|
||||
|
||||
Reference in New Issue
Block a user