From c14894fb3135446ac58e7b4aea235a9ef33969ee Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Tue, 25 Jun 2024 15:05:17 +0200 Subject: [PATCH] Make sure WebP files are copied over to doc site --- website/.eleventy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/.eleventy.js b/website/.eleventy.js index 1f7753c..d8f2bc1 100644 --- a/website/.eleventy.js +++ b/website/.eleventy.js @@ -60,7 +60,7 @@ function copyStatic() { fs.readdirSync(__dirname+'/static').forEach(function(fname) { fs.copyFileSync(__dirname+'/static/'+fname, outdir+'/'+fname); }); - globSync(indir+'/**/*.{png,jpg,jpeg}').forEach(function(fname) { + globSync(indir+'/**/*.{png,jpg,jpeg,webp}').forEach(function(fname) { const dest = outdir+'/'+fname.slice(indir.length + 1); fs.mkdirSync(path.dirname(dest), { recursive: true }); fs.copyFileSync(fname, dest);