File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -9,23 +9,24 @@ class CommonsChunkPlugin {
99 constructor ( options ) {
1010 if ( arguments . length > 1 ) {
1111 throw new Error ( `Deprecation notice: CommonsChunkPlugin now only takes a single argument. Either an options
12- object *or* the name of the chunk.
13- Example: if your old code looked like this:
14- new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.bundle.js')
12+ object *or* the name of the chunk.
13+ Example: if your old code looked like this:
14+ new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.bundle.js')
1515
16- You would change it to:
17- new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', filename: 'vendor.bundle.js' })
16+ You would change it to:
17+ new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', filename: 'vendor.bundle.js' })
1818
19- The available options are:
20- name: string
21- names: string[]
22- filename: string
23- minChunks: number
24- chunks: string[]
25- children: boolean
26- async: boolean
27- minSize: number` ) ;
19+ The available options are:
20+ name: string
21+ names: string[]
22+ filename: string
23+ minChunks: number
24+ chunks: string[]
25+ children: boolean
26+ async: boolean
27+ minSize: number` ) ;
2828 }
29+
2930 if ( Array . isArray ( options ) || typeof options === "string" ) {
3031 options = {
3132 name : options
You can’t perform that action at this time.
0 commit comments