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:
parent
27ebbbc898
commit
c14894fb31
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user