Skip to content

Build your personal knowledge base with Trilium Notes

fix(webpackMiddleware): add (now) missing plugins declaration from productionConfig

Panagiotis Papadopoulos1b309675c8b0
diff --git a/src/routes/assets.ts b/src/routes/assets.ts
index 796491e134..4942f8017e 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,