@ad2302/webpack-stats-progress 中文文档教程
这个插件旨在提供更清晰的 webpack 构建输出。 它还会在构建运行时显示进度条。
Progress bar
该插件还带有一个进度条
Usage
在 webpack 配置文件中,添加这个插件并确保关闭统计
const WebpackStatsProgress = require("webpack-stats-progress");
const path = require("path");
module.exports = {
// ... other webpack configuration
mode: "production",
stats: "none",
plugins: [
new WebpackStatsProgress({ buildFolder: path.join(__dirname, "dist") }),
],
};
检查 example
文件夹中的示例。
Credits:
This plugin is intended to provide cleaner output of webpack build. It also displays a progress bar while the build is running.
Progress bar
The plugin also comes with a progress bar
Usage
In th webpack config file, add this plugin and make sure to turn off the stats
const WebpackStatsProgress = require("webpack-stats-progress");
const path = require("path");
module.exports = {
// ... other webpack configuration
mode: "production",
stats: "none",
plugins: [
new WebpackStatsProgress({ buildFolder: path.join(__dirname, "dist") }),
],
};
Check the example in the example
folder.