build(frontend): fix webpack config

This commit is contained in:
Sarah Vaupel 2024-09-03 02:16:16 +02:00
parent 03aa1c6837
commit fd51a1ce5e

View File

@ -7,7 +7,7 @@ import path from 'path';
import tmp from 'tmp';
tmp.setGracefulCleanup();
import fs from 'fs-extra';
import { glob } from 'glob';
import { glob, globSync } from 'glob';
import execSync from 'child_process';
import axios from 'axios';
@ -246,7 +246,7 @@ async function webpackConfig() {
]
}),
{ apply: compiler => compiler.hooks.afterEmit.tap('AfterEmitPlugin', compilation => {
const imgFiles = glob.sync(path.resolve('well-known', lang, '*.@(png)'));
const imgFiles = globSync(path.resolve('well-known', lang) + '/*.@(png)');
const imgFilesArgs = Array.from(imgFiles).join(" ");
execSync(`exiftool -overwrite_original -all= ${imgFilesArgs}`, { stdio: 'inherit' });
})