From a409ebb16074f87c1a6ab46b620d80a0451e0ac3 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 2 Dec 2022 01:11:30 +0100 Subject: [PATCH] Compile mocha test files --- webpack.config.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webpack.config.ts b/webpack.config.ts index fdf6005..ed0a71d 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -13,7 +13,13 @@ let generator = (env: any, argv: any): Configuration[] => target: "web", mode: env.production ? "production" : "development", entry: { - main: "./src/index.ts" + main: "./src/index.ts", + ...( + env.production ? + {} : + { + "tests/main.test": "./src/tests/main.test.ts" + }) }, output: { filename: "[name].js",