mirror of https://github.com/webpack/webpack.git
14 lines
411 B
JavaScript
14 lines
411 B
JavaScript
|
var path = require("path");
|
||
|
var CommonsChunkPlugin = require("../../lib/optimize/CommonsChunkPlugin");
|
||
|
module.exports = {
|
||
|
plugins: [
|
||
|
new CommonsChunkPlugin({
|
||
|
// process all children of the main chunk
|
||
|
// if omitted it would process all chunks
|
||
|
name: "main",
|
||
|
// create a additional async chunk for the common modules
|
||
|
// which is loaded in parallel to the requested chunks
|
||
|
async: true
|
||
|
})
|
||
|
]
|
||
|
}
|