Skip to content

Commit

Permalink
feat: 10000_big_production-mode_disable-minimize (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind authored Nov 18, 2024
1 parent e7eaabf commit af6e4bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bench.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default {
"10000_development-mode",
"10000_development-mode_hmr",
"10000_production-mode",
"10000_big_production-mode",
"10000_big_production-mode_disable-minimize",
"arco-pro_development-mode",
"arco-pro_development-mode_hmr",
"arco-pro_production-mode",
Expand Down
12 changes: 12 additions & 0 deletions lib/addons/disable-minimize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Addon } from "./common.js";

export default class extends Addon {
async afterSetup(ctx) {
ctx.config =
ctx.config +
`
module.exports.optimization = module.exports.optimization || {}
module.exports.optimization.minimize = false
`;
}
}

0 comments on commit af6e4bc

Please sign in to comment.