mirror of https://github.com/webpack/webpack.git
21 lines
360 B
JavaScript
21 lines
360 B
JavaScript
var webpack = require("../../../");
|
|
module.exports = [1, 2, 3, 4].map(n => ({
|
|
name: `${n} chunks`,
|
|
mode: "production",
|
|
entry: "./index",
|
|
output: {
|
|
filename: "bundle.js"
|
|
},
|
|
plugins: [
|
|
new webpack.optimize.LimitChunkCountPlugin({
|
|
maxChunks: n
|
|
})
|
|
],
|
|
stats: {
|
|
chunkModules: true,
|
|
chunkRelations: true,
|
|
modules: false,
|
|
chunks: true
|
|
}
|
|
}));
|