From fd51a1ce5e963fdae3dbc3a9e28952fef0114ec8 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Tue, 3 Sep 2024 02:16:16 +0200 Subject: [PATCH] build(frontend): fix webpack config --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index eb65e332f..637c25461 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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' }); })