Skip to content

Commit

Permalink
do not use webpack compression plugin in dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Jan 10, 2025
1 parent 9f88d8e commit 712d03e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ const config = {
__RRWEB_EXCLUDE_IFRAME__: true, // Session Replay - we don't use it
__RRWEB_EXCLUDE_SHADOW_DOM__: true, // Session Replay - we don't use it
__SENTRY_EXCLUDE_REPLAY_WORKER__: true, // Session Replay - we don't use it
}),
})
);

if (!options.dev) {
new CompressionPlugin({
filename: "[path][base].br",
algorithm: "brotliCompress",
Expand All @@ -70,8 +73,8 @@ const config = {
},
threshold: 5120,
minRatio: 0.8,
})
);
});
}

// if (!options.dev) {
// config.resolve.alias = {
Expand Down

0 comments on commit 712d03e

Please sign in to comment.