We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a26cc70 commit 287e0e1Copy full SHA for 287e0e1
src/content/plugins/commons-chunk-plugin.md
@@ -98,17 +98,18 @@ Split your code into vendor and application.
98
entry: {
99
vendor: ["jquery", "other-lib"],
100
app: "./entry"
101
-}
102
-new webpack.optimize.CommonsChunkPlugin({
103
- name: "vendor",
104
-
105
- // filename: "vendor.js"
106
- // (Give the chunk a different name)
+},
+plugins: [
+ new webpack.optimize.CommonsChunkPlugin({
+ name: "vendor",
+ // filename: "vendor.js"
+ // (Give the chunk a different name)
107
108
- minChunks: Infinity,
109
- // (with more entries, this ensures that no other module
110
- // goes into the vendor chunk)
111
-})
+ minChunks: Infinity,
+ // (with more entries, this ensures that no other module
+ // goes into the vendor chunk)
+ })
112
+]
113
```
114
115
```html
0 commit comments