From d16457fac9c551f6d4168ba0ab306232e421c265 Mon Sep 17 00:00:00 2001 From: Kyrylo Shmidt Date: Tue, 10 Dec 2024 11:39:38 +0100 Subject: [PATCH] Add index.html to Jetbrains distributive --- webpack.common.ts | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/webpack.common.ts b/webpack.common.ts index 275a161df..127f75b5d 100644 --- a/webpack.common.ts +++ b/webpack.common.ts @@ -53,28 +53,22 @@ const getConfig = (env: WebpackEnv): WebpackConfiguration => { } ] }), - ...(env.platform !== "JetBrains" - ? [ - ...Object.keys(entriesToBuild).map((app) => { - return new HtmlWebpackPlugin({ - template: path.resolve( - __dirname, - `./assets/${ - env.platform === "Web" ? "index.web.ejs" : "index.ejs" - }` - ), - filename: `${app}/index.html`, - chunks: [app], - inject: false, - minify: false, - scriptLoading: "blocking", - templateParameters: { - environmentVariables: appData[app]?.environmentVariables ?? [] - } - }); - }) - ] - : []), + ...Object.keys(entriesToBuild).map((app) => { + return new HtmlWebpackPlugin({ + template: path.resolve( + __dirname, + `./assets/${env.platform === "Web" ? "index.web.ejs" : "index.ejs"}` + ), + filename: `${app}/index.html`, + chunks: [app], + inject: false, + minify: false, + scriptLoading: "blocking", + templateParameters: { + environmentVariables: appData[app]?.environmentVariables ?? [] + } + }); + }), new ZipPlugin({ filename: [ "dist",