Skip to content

Commit 15d6a5e

Browse files
committed
formatted the template string to remove extra whitespace and line breaks
1 parent 1f6431e commit 15d6a5e

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

lib/optimize/CommonsChunkPlugin.js

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)