From cb8c889e86f6d4c0cbed0af5ae873e51196408ba Mon Sep 17 00:00:00 2001 From: Sam Chen Date: Thu, 17 Dec 2020 20:36:00 +0800 Subject: [PATCH] docs: fix example in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();