2024-06-21 21:03:37 +00:00
|
|
|
import hashPaths from "../hash.js";
|
2024-06-26 21:42:33 +00:00
|
|
|
import { src, then, synchronise, dest } from "../rx-utils.js";
|
|
|
|
import { map } from "rxjs";
|
2024-06-21 19:17:32 +00:00
|
|
|
|
2024-06-21 21:03:37 +00:00
|
|
|
export const images = () =>
|
2024-06-26 21:42:33 +00:00
|
|
|
src("src/*.avif").pipe(
|
|
|
|
then(async (file) => {
|
|
|
|
file.path = file.path.substring(4);
|
|
|
|
return file;
|
|
|
|
}),
|
|
|
|
synchronise(),
|
|
|
|
hashPaths("images.manifest"),
|
|
|
|
map(dest("dist/_assets")),
|
|
|
|
);
|