diff --git a/packages/electron-webpack/src/targets/RendererTarget.ts b/packages/electron-webpack/src/targets/RendererTarget.ts
index e462bfa..f9c58d2 100644
--- a/packages/electron-webpack/src/targets/RendererTarget.ts
+++ b/packages/electron-webpack/src/targets/RendererTarget.ts
@@ -203,7 +203,9 @@ async function generateIndexFile(configurator: WebpackConfigurator, nodeModulePa
html = html.replace("", ``)
}
- html = html.replace("", '')
+ if (!process.env.ELECTRON_WEBPACK_DISABLE_SOURCE_MAP_SUPPORT) {
+ html = html.replace("", '');
+ }
if (scripts.length) {
html = html.replace("", `${scripts.join("")}`)