1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Enbale eval-source-map for development for faster recompiling

Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
This commit is contained in:
Hung-Han (Henry) Chen 2020-12-03 14:51:04 +08:00
parent 9ccc9bf790
commit 2413938524
No known key found for this signature in database
GPG Key ID: A28B7834EFA73792

View File

@ -20,7 +20,7 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura
return {
context: __dirname,
target: "electron-renderer",
devtool: "source-map", // todo: optimize in dev-mode with webpack.SourceMapDevToolPlugin
devtool: isProduction ? "source-map" : "eval-source-map",
devServer: {
contentBase: buildDir,
port: webpackDevServerPort,