From 9f87fec52d2780d23be73385205587a55e307596 Mon Sep 17 00:00:00 2001 From: GCHQDeveloper581 <63102987+GCHQDeveloper581@users.noreply.github.com> Date: Mon, 22 Jun 2026 11:52:26 +0100 Subject: [PATCH] =?UTF-8?q?Clean=20up/rationalise=20webpack=20paths=20and?= =?UTF-8?q?=20thereby=20increase=20compatibility=20for=20Win=E2=80=A6=20(#?= =?UTF-8?q?2585)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 4c6c00ba..555a33c3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -88,8 +88,8 @@ module.exports = { from: "tesseract/**/*", to: "assets/" }, { - context: "node_modules/tesseract.js/", - from: "dist/worker.min.js", + context: "node_modules/tesseract.js/dist", + from: "worker.min.js", to: "assets/tesseract" }, { context: "node_modules/tesseract.js-core/", @@ -221,7 +221,7 @@ module.exports = { }, { // Third party images are inlined test: /\.(png|jpg|gif)$/, - exclude: /web\/static/, + include: /node_modules/, type: "asset/inline", }, ]