From e19002caca611f3aa9cc942045df1bd07eb662d7 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Fri, 8 Dec 2023 11:13:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=98=B6=E6=AE=B5=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E4=BB=A3=E7=A0=81=E3=80=81=E5=A4=96=E7=BD=AEmap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-config/main/webpack.config.prod.js | 1 + build-config/renderer-lyric/webpack.config.prod.js | 2 +- build-config/renderer-scripts/webpack.config.prod.js | 2 +- build-config/renderer/webpack.config.prod.js | 2 +- build-config/webpack-build-config.js | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build-config/main/webpack.config.prod.js b/build-config/main/webpack.config.prod.js index dbc694f4..ccf910cc 100644 --- a/build-config/main/webpack.config.prod.js +++ b/build-config/main/webpack.config.prod.js @@ -12,6 +12,7 @@ const buildConfig = require('../webpack-build-config') module.exports = merge(baseConfig, { mode: 'production', + devtool: 'source-map', entry: { main: path.join(__dirname, '../../src/main/index.ts'), // 'dbService.worker': path.join(__dirname, '../../src/main/worker/dbService/index.ts'), diff --git a/build-config/renderer-lyric/webpack.config.prod.js b/build-config/renderer-lyric/webpack.config.prod.js index 9f1bbffa..28bd5b12 100644 --- a/build-config/renderer-lyric/webpack.config.prod.js +++ b/build-config/renderer-lyric/webpack.config.prod.js @@ -15,7 +15,7 @@ const buildConfig = require('../webpack-build-config') module.exports = merge(baseConfig, { mode: 'production', - devtool: false, + devtool: 'source-map', externals: [ // ...Object.keys(dependencies || {}).filter(d => !whiteListedModules.includes(d)), ], diff --git a/build-config/renderer-scripts/webpack.config.prod.js b/build-config/renderer-scripts/webpack.config.prod.js index a42be94b..5155416b 100644 --- a/build-config/renderer-scripts/webpack.config.prod.js +++ b/build-config/renderer-scripts/webpack.config.prod.js @@ -14,7 +14,7 @@ const buildConfig = require('../webpack-build-config') module.exports = merge(baseConfig, { mode: 'production', - devtool: false, + devtool: 'source-map', externals: [ // ...Object.keys(dependencies || {}).filter(d => !whiteListedModules.includes(d)), ], diff --git a/build-config/renderer/webpack.config.prod.js b/build-config/renderer/webpack.config.prod.js index be2a40fa..1ff4526b 100644 --- a/build-config/renderer/webpack.config.prod.js +++ b/build-config/renderer/webpack.config.prod.js @@ -15,7 +15,7 @@ const buildConfig = require('../webpack-build-config') module.exports = merge(baseConfig, { mode: 'production', - devtool: false, + devtool: 'source-map', externals: [ // ...Object.keys(dependencies || {}).filter(d => !whiteListedModules.includes(d)), ], diff --git a/build-config/webpack-build-config.js b/build-config/webpack-build-config.js index 91331ca7..20e3bad9 100644 --- a/build-config/webpack-build-config.js +++ b/build-config/webpack-build-config.js @@ -1,3 +1,3 @@ module.exports = { - minimize: false, + minimize: true, }