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

Use webpack-chain to do webpack configuration in vue.config.js, so how to use speed-measure-webpack-plugin plugin? #121

Closed
geekskai opened this issue Apr 23, 2020 · 2 comments

Comments

@geekskai
Copy link

According to the configuration of speed-measure-webpack-plugin, all the plugins are wrapped, but if you use webpack-chain, can you not use this plugin?

@raypatterson
Copy link

Based on this example

module.exports = smp.wrap(mergedConfig);

I was able apply with:

import Config from "webpack-chain";
import SpeedMeasurePlugin from "speed-measure-webpack-plugin";

const webpackChain = new Config();
const smp = new SpeedMeasurePlugin();

export default smp.wrap(webpackChain.toConfig());

@geekskai
Copy link
Author

thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants