File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,18 @@ Split your code into vendor and application.
98
98
entry: {
99
99
vendor: [" jquery" , " other-lib" ],
100
100
app: " ./entry"
101
- }
102
- new webpack.optimize.CommonsChunkPlugin ({
103
- name : " vendor " ,
104
-
105
- // filename: "vendor.js"
106
- // (Give the chunk a different name)
101
+ },
102
+ plugins : [
103
+ new webpack.optimize.CommonsChunkPlugin ({
104
+ name : " vendor " ,
105
+ // filename: "vendor.js"
106
+ // (Give the chunk a different name)
107
107
108
- minChunks: Infinity ,
109
- // (with more entries, this ensures that no other module
110
- // goes into the vendor chunk)
111
- })
108
+ minChunks: Infinity ,
109
+ // (with more entries, this ensures that no other module
110
+ // goes into the vendor chunk)
111
+ })
112
+ ]
112
113
` ` `
113
114
114
115
` ` ` html
You can’t perform that action at this time.
0 commit comments