speed-measure-webpack-plugin icon indicating copy to clipboard operation
speed-measure-webpack-plugin copied to clipboard

Laravel mix compatible

Open abewartech opened this issue 2 years ago • 1 comments

How to install this plugin in laravel mix?

abewartech avatar Jun 21 '22 07:06 abewartech

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({
    ...
}));

7ute avatar Jun 29 '22 08:06 7ute