From 1b309675c8b0c0736ac7ef75e48dc1070a822411 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Fri, 21 Feb 2025 22:06:00 +0100 Subject: [PATCH] fix(webpackMiddleware): add (now) missing plugins declaration from productionConfig required since we used `mini-css-extract-plugin` now --- src/routes/assets.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/assets.ts b/src/routes/assets.ts index 796491e13..4942f8017 100644 --- a/src/routes/assets.ts +++ b/src/routes/assets.ts @@ -28,6 +28,7 @@ async function register(app: express.Application) { type: "filesystem", cacheDirectory: path.join(srcRoot, "..", ".cache", isElectron ? "electron" : "server") }, + plugins: productionConfig.plugins, entry: productionConfig.entry, module: productionConfig.module, resolve: productionConfig.resolve,