1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2024-11-24 18:26:56 +01:00

Make sure WebP files are copied over to doc site

This commit is contained in:
Romein van Buren 2024-06-25 15:05:17 +02:00
parent 27ebbbc898
commit c14894fb31
No known key found for this signature in database

View File

@ -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);