Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分析webpack编译慢在哪里speed-measure-webpack-plugin #36

Open
hfc-advance opened this issue Nov 3, 2018 · 0 comments
Open

分析webpack编译慢在哪里speed-measure-webpack-plugin #36

hfc-advance opened this issue Nov 3, 2018 · 0 comments
Labels

Comments

@hfc-advance
Copy link
Owner

hfc-advance commented Nov 3, 2018

webpack慢在哪里

我们可以使用 Speed Measure Plugin 来对打包过程中消耗的时间进行精确的统计,如图所示:
result
使用方式如下:

npm install speed-measure-webpack-plugin --save-dev
const SpeedMeasurePlugin = require("speed-measure-webpack-plugin");

const smp = new SpeedMeasurePlugin();

const webpackConfig = smp.wrap({
    plugins: [
        new MyPlugin(),
        new MyOtherPlugin()
    ]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant