2017-06-15 04:46:26 +08:00
|
|
|
module.exports = [
|
|
|
|
|
{
|
2017-11-21 17:41:01 +08:00
|
|
|
mode: "production",
|
2017-06-15 04:46:26 +08:00
|
|
|
entry: {
|
|
|
|
|
first: "./first",
|
|
|
|
|
second: "./second"
|
|
|
|
|
},
|
|
|
|
|
target: "web",
|
|
|
|
|
output: {
|
|
|
|
|
filename: "[name].js"
|
|
|
|
|
},
|
2017-11-21 17:41:01 +08:00
|
|
|
optimization: {
|
2018-01-20 00:06:59 +08:00
|
|
|
concatenateModules: false,
|
|
|
|
|
splitChunks: {
|
|
|
|
|
cacheGroups: {
|
|
|
|
|
vendor: {
|
|
|
|
|
test: /vendor/,
|
|
|
|
|
chunks: "initial",
|
|
|
|
|
name: "vendor",
|
|
|
|
|
enforce: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-11-21 17:41:01 +08:00
|
|
|
},
|
2017-06-15 04:46:26 +08:00
|
|
|
stats: {
|
|
|
|
|
assets: false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2017-11-21 17:41:01 +08:00
|
|
|
mode: "production",
|
2017-06-15 04:46:26 +08:00
|
|
|
entry: {
|
|
|
|
|
first: "./first",
|
|
|
|
|
second: "./second"
|
|
|
|
|
},
|
|
|
|
|
target: "web",
|
|
|
|
|
output: {
|
|
|
|
|
filename: "[name].js"
|
|
|
|
|
},
|
2018-01-20 00:06:59 +08:00
|
|
|
optimization: {
|
|
|
|
|
splitChunks: {
|
|
|
|
|
cacheGroups: {
|
|
|
|
|
vendor: {
|
|
|
|
|
test: /vendor/,
|
|
|
|
|
chunks: "initial",
|
|
|
|
|
name: "vendor",
|
|
|
|
|
enforce: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-06-15 04:46:26 +08:00
|
|
|
stats: {
|
|
|
|
|
assets: false,
|
|
|
|
|
optimizationBailout: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
];
|