Disable sourcemaps on build

This commit is contained in:
zkldi
2021-11-01 02:04:34 +00:00
parent b707ce06a4
commit 69c5a66a7a
+1 -1
View File
@@ -30,7 +30,7 @@ const postcssNormalize = require("postcss-normalize");
const appPackageJson = require(paths.appPackageJson);
// Source maps are resource heavy and can cause out of memory issue for large source files.
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== "false";
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== "false" && process.env.NODE_ENV !== "production";
// Some apps do not need the benefits of saving a web request, so not inlining the chunk
// makes for a smoother build process.
const shouldInlineRuntimeChunk = process.env.INLINE_RUNTIME_CHUNK !== "false";