2015-01-12 06:15:11 +08:00
|
|
|
var CommonsChunkPlugin = require("../../lib/optimize/CommonsChunkPlugin");
|
2017-01-11 17:51:58 +08:00
|
|
|
|
2015-01-12 06:15:11 +08:00
|
|
|
module.exports = {
|
2017-11-21 18:04:18 +08:00
|
|
|
mode: "production",
|
2015-01-12 06:15:11 +08:00
|
|
|
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
|
|
|
|
})
|
|
|
|
]
|
2017-01-11 17:51:58 +08:00
|
|
|
};
|