diff --git a/README.md b/README.md index b8791f0f2..89451a21e 100644 --- a/README.md +++ b/README.md @@ -197,7 +197,7 @@ app.use(instance); setTimeout(() => { // After a short delay the configuration is changed and a banner plugin is added // to the config - compiler.apply(new webpack.BannerPlugin('A new banner')); + new webpack.BannerPlugin('A new banner').apply(compiler); // Recompile the bundle with the banner plugin: instance.invalidate();