Skip to content

Commit

Permalink
构建阶段压缩代码、外置map
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Dec 8, 2023
1 parent b67d99e commit e19002c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions build-config/main/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion build-config/renderer-lyric/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
],
Expand Down
2 changes: 1 addition & 1 deletion build-config/renderer-scripts/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
],
Expand Down
2 changes: 1 addition & 1 deletion build-config/renderer/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
],
Expand Down
2 changes: 1 addition & 1 deletion build-config/webpack-build-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
minimize: false,
minimize: true,
}

0 comments on commit e19002c

Please sign in to comment.