Skip to content

Commit

Permalink
Disable minification for server-side code
Browse files Browse the repository at this point in the history
No real reason to do this since we won't send this JS anywhere.
When Express fails, it will point to a sensible line instead of dumping the entirety of main.js into the log.
  • Loading branch information
ybnd committed Nov 25, 2024
1 parent 404ccd9 commit 7145c3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webpack/webpack.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ module.exports = Object.assign({}, commonExports, {
recordsOutputPath: projectRoot('webpack.records.json'),
entry: projectRoot('./server.ts'),
target: 'node',
optimization: {
minimize: false
},
});

0 comments on commit 7145c3b

Please sign in to comment.