mirror of
https://github.com/web3privacy/data
synced 2024-10-15 18:16:28 +02:00
bump of std version to 0.224.0 in img-opt.js
This commit is contained in:
parent
a6b20e9bfd
commit
0b69af2931
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
import { run } from "https://deno.land/x/run_simple/mod.ts";
|
||||
import { join } from "https://deno.land/std@0.208.0/path/mod.ts";
|
||||
import { emptyDir } from "https://deno.land/std@0.196.0/fs/empty_dir.ts";
|
||||
import { join } from "https://deno.land/std@0.224.0/path/mod.ts";
|
||||
import { emptyDir } from "https://deno.land/std@0.224.0/fs/empty_dir.ts";
|
||||
|
||||
async function optimizeDir (dir, sizes) {
|
||||
await emptyDir(join(dir, 'thumbs'))
|
||||
|
@ -37,4 +37,4 @@ const eventSizes = { '128px': { width: 128 }, '360px': { width: 360 }, '640px':
|
|||
await optimizeDir('./src/events/_images/2023', eventSizes)
|
||||
await optimizeDir('./src/events/_images/2024', eventSizes)
|
||||
|
||||
//console.log(await run('ls'))
|
||||
//console.log(await run('ls'))
|
||||
|
|
Loading…
Reference in a new issue