Skip to content

Commit ae80c11

Browse files
committed
移除compression-webpack-plugin及优化配置
1 parent 423008d commit ae80c11

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"@rsbuild/plugin-image-compress": "^1.1.0",
2929
"@rspress/mdx-rs": "^0.6.6",
3030
"@types/node": "^22.13.4",
31-
"compression-webpack-plugin": "^11.1.0",
3231
"husky": "^9.1.7",
3332
"lint-staged": "^15.4.3",
3433
"prettier": "^3.5.1",

src/utils/base.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// gzip 插件
2-
import CompressionWebpackPlugin from "compression-webpack-plugin";
32
// import { umami } from "./icon";
43

54
const nav = [
@@ -79,16 +78,12 @@ const builderConfig = {
7978
]
8079
},
8180
dev: {
82-
progressBar: true
81+
progressBar: true,
82+
cliShortcuts: false
8383
},
8484
server: {
85-
strictPort: true
86-
},
87-
tools: {
88-
rspack: async (config, { prependPlugins }) => {
89-
prependPlugins(new CompressionWebpackPlugin());
90-
return config;
91-
}
85+
strictPort: true,
86+
open: true
9287
}
9388
};
9489

0 commit comments

Comments
 (0)