Skip to content

Commit c98e075

Browse files
authored
fix: use native webpack progress plugin (#293)
* fix: fallback to native progress plugin for webpack 5.106+ * fix: use native webpack progress plugin
1 parent 23d7dc6 commit c98e075

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@
9797
"unified": "^8.0.0",
9898
"url-loader": "^4.0.0",
9999
"webpack": "^5.0.0",
100-
"webpack-merge": "^4.2.1",
101-
"webpackbar": "^5.0.0"
100+
"webpack-merge": "^4.2.1"
102101
},
103102
"devDependencies": {
104103
"@rc-component/father-plugin": "^2.1.2",

src/getWebpackConfig.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { getProjectPath, resolve } from './utils/projectHelper';
22
import * as path from 'path';
33
import * as webpack from 'webpack';
4-
import WebpackBar from 'webpackbar';
54
import webpackMerge from 'webpack-merge';
65
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
76
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
@@ -179,9 +178,8 @@ ${pkg.name} v${pkg.version}
179178
Copyright 2015-present, Alipay, Inc.
180179
All rights reserved.
181180
`),
182-
new WebpackBar({
183-
name: '🚚 Ant Design Tools',
184-
color: '#2f54eb',
181+
new webpack.ProgressPlugin({
182+
activeModules: true,
185183
}),
186184
new CleanUpStatsPlugin(),
187185
],

0 commit comments

Comments
 (0)