Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Jun 26, 2023
1 parent e3679e2 commit cc65f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ export default async function getBaseWebpackConfig(
runtimeChunk: isClient
? { name: CLIENT_STATIC_FILES_RUNTIME_WEBPACK }
: undefined,
minimize: !dev && !config.disableServerMinification,
minimize: !dev && !(isNodeServer && config.disableServerMinification),
minimizer: [
// Minify JavaScript
(compiler: webpack.Compiler) => {
Expand Down

0 comments on commit cc65f01

Please sign in to comment.