chore: improve call to exiftool
This commit is contained in:
parent
8e731223be
commit
f853e1816a
@ -186,9 +186,9 @@ module.exports = {
|
||||
}).flat(1);
|
||||
})(),
|
||||
{ apply: compiler => compiler.hooks.afterEmit.tap('AfterEmitPlugin', compilation => {
|
||||
Array.from(glob.sync(path.resolve(__dirname, 'well-known', '**', '*.@(png)'))).forEach(imageFile => {
|
||||
execSync(`exiftool -overwrite_original -all= ${imageFile}`, { stdio: 'inherit' });
|
||||
});
|
||||
const imgFiles = glob.sync(path.resolve(__dirname, 'well-known', '**', '*.@(png)'));
|
||||
const imgFilesArgs = Array.from(imgFiles).join(" ");
|
||||
execSync(`exiftool -overwrite_original -all= ${imgFilesArgs}`, { stdio: 'inherit' });
|
||||
})
|
||||
}
|
||||
],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user