Skip to content

Commit 5fcf843

Browse files
authored
Merge pull request #644 from doberkofler/patch-1
Added section on BannerPlugin
2 parents c4cd21a + aa3002e commit 5fcf843

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

content/guides/migrating.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,17 @@ To keep compatibility with old loaders, loaders can be switched to minimize mode
224224
]
225225
```
226226

227+
## `BannerPlugin` - breaking change
228+
229+
`BannerPlugin` no longer accept two parameters but rather only a single options object.
230+
231+
``` diff
232+
plugins: [
233+
- new webpack.BannerPlugin('Banner', {raw: true, entryOnly: true});
234+
+ new webpack.BannerPlugin({banner: 'Banner', raw: true, entryOnly: true});
235+
]
236+
```
237+
227238
## `OccurrenceOrderPlugin` is now on by default
228239

229240
It's no longer necessary to specify it in configuration.

0 commit comments

Comments
 (0)