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",