Skip to content

Commit daa7f0f

Browse files
authored
docs: fix example in readme (#802)
1 parent 0d289c4 commit daa7f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ app.use(instance);
197197
setTimeout(() => {
198198
// After a short delay the configuration is changed and a banner plugin is added
199199
// to the config
200-
compiler.apply(new webpack.BannerPlugin('A new banner'));
200+
new webpack.BannerPlugin('A new banner').apply(compiler);
201201

202202
// Recompile the bundle with the banner plugin:
203203
instance.invalidate();

0 commit comments

Comments
 (0)