12 lines
332 B
TypeScript
12 lines
332 B
TypeScript
import hashPaths from "../hash.ts";
|
|
import { dest, fromGlob } from "../rx-utils.ts";
|
|
import { tap } from "rxjs";
|
|
|
|
export const images = () =>
|
|
fromGlob("src/*.avif")
|
|
.pipe(
|
|
tap((f) => (f.path = f.path.substring(4))),
|
|
hashPaths("images.manifest"),
|
|
)
|
|
.forEach(dest("dist/_assets"));
|