webpack/test/statsCases/limit-chunk-count-plugin/webpack.config.js

21 lines
360 B
JavaScript
Raw Normal View History

2017-01-18 05:26:38 +08:00
var webpack = require("../../../");
module.exports = [1, 2, 3, 4].map(n => ({
name: `${n} chunks`,
mode: "production",
2017-01-18 05:26:38 +08:00
entry: "./index",
output: {
filename: "bundle.js"
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: n
})
],
stats: {
chunkModules: true,
2018-12-22 20:19:13 +08:00
chunkRelations: true,
2017-01-18 05:26:38 +08:00
modules: false,
chunks: true
}
}));