chore: improve call to exiftool

This commit is contained in:
Gregor Kleen 2020-01-11 22:16:45 +01:00
parent 8e731223be
commit f853e1816a

View File

@ -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' });
})
}
],