Skip to content

Commit af6e4bc

Browse files
authored
feat: 10000_big_production-mode_disable-minimize (#52)
1 parent e7eaabf commit af6e4bc

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

bench.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default {
33
"10000_development-mode",
44
"10000_development-mode_hmr",
55
"10000_production-mode",
6-
"10000_big_production-mode",
6+
"10000_big_production-mode_disable-minimize",
77
"arco-pro_development-mode",
88
"arco-pro_development-mode_hmr",
99
"arco-pro_production-mode",

lib/addons/disable-minimize.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Addon } from "./common.js";
2+
3+
export default class extends Addon {
4+
async afterSetup(ctx) {
5+
ctx.config =
6+
ctx.config +
7+
`
8+
module.exports.optimization = module.exports.optimization || {}
9+
module.exports.optimization.minimize = false
10+
`;
11+
}
12+
}

0 commit comments

Comments
 (0)