2024-06-27 04:22:58 +00:00
|
|
|
import hashPaths from "../hash.ts";
|
|
|
|
import { dest, fromGlob } from "../rx-utils.ts";
|
|
|
|
import { tap } from "rxjs";
|
2024-06-21 19:17:32 +00:00
|
|
|
|
2024-06-21 21:03:37 +00:00
|
|
|
export const images = () =>
|
2024-06-27 01:36:05 +00:00
|
|
|
fromGlob("src/*.avif")
|
2024-06-27 01:28:17 +00:00
|
|
|
.pipe(
|
|
|
|
tap((f) => (f.path = f.path.substring(4))),
|
|
|
|
hashPaths("images.manifest"),
|
|
|
|
)
|
|
|
|
.forEach(dest("dist/_assets"));
|