这时一般搭配 entry 的配置一起用: entry: { vendor: ["jquery", "other-lib"], app: "./entry" } new webpack.optimize.CommonsChunkPlugin({ name: "vendor", // filename: "vendor.js" // (Give the chunk a different name) minChunks: Infinity, // (with more en...
webpack bits: Getting the most out of the CommonsChunkPlugin() webpack: Unraveling CommonsChunkPlugin What does “children” refer to in CommonsChunkPlugin config