webpack/test/statsCases/scope-hoisting-multi/webpack.config.js

63 lines
926 B
JavaScript

module.exports = [
{
mode: "production",
entry: {
first: "./first",
second: "./second"
},
target: "web",
output: {
filename: "[name].js"
},
optimization: {
moduleIds: "natural",
chunkIds: "natural",
concatenateModules: false,
splitChunks: {
cacheGroups: {
vendor: {
test: /vendor/,
chunks: "initial",
name: "vendor",
enforce: true
}
}
}
},
stats: {
assets: false
}
},
{
mode: "production",
entry: {
first: "./first",
second: "./second"
},
target: "web",
output: {
filename: "[name].js"
},
optimization: {
moduleIds: "natural",
chunkIds: "natural",
splitChunks: {
cacheGroups: {
vendor: {
test: /vendor/,
chunks: "initial",
name: "vendor",
enforce: true
}
}
}
},
stats: {
assets: false,
orphanModules: true,
optimizationBailout: true
}
}
];