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

Laravel mix compatible #188

Open
abewartech opened this issue Jun 21, 2022 · 1 comment
Open

Laravel mix compatible #188

abewartech opened this issue Jun 21, 2022 · 1 comment

Comments

@abewartech
Copy link

How to install this plugin in laravel mix?

@7ute
Copy link

7ute commented Jun 29, 2022

I got it to work (in laravel-mix@6) with the mix.webpackConfig, if you're using it.
Changed this :

mix.webpackConfig({
    ...
});

to this :

const SpeedMeasurePlugin = require("speed-measure-webpack-plugin");
const smp = new SpeedMeasurePlugin();
mix.webpackConfig(smp.wrap({
    ...
}));

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