diff --git a/webpack.config.js b/webpack.config.js index cc8b9918d..24e9c7aef 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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' }); }) } ],