From 2031029076fca6123bcb4f6ab97c837f1a75e212 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Sat, 25 Jan 2025 11:31:46 +0100 Subject: [PATCH] chore(webpack): add Configuration type -> allows for intellisense in e.g. VSCode --- webpack.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webpack.config.ts b/webpack.config.ts index b8c787118..c81844cc3 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -1,9 +1,10 @@ import { fileURLToPath } from "url"; import path from "path"; import assetPath from "./src/services/asset_path.js"; +import type { Configuration } from "webpack"; const rootDir = path.dirname(fileURLToPath(import.meta.url)); -export default { +const config: Configuration = { mode: "production", entry: { setup: "./src/public/app/setup.js", @@ -42,3 +43,5 @@ export default { devtool: "source-map", target: "electron-renderer" }; + +export default config; \ No newline at end of file