DT
Size: a a a
DT
A
DT
DT
A
DT
A
KS
A
DT
KS
KS
A
KS
KS
DT
KS
DT
A
entry: {
index: [ './src/index.js'],
problems: [ './src/problems.js'],
news: [ './src/news.js'],
}
optimization: {
splitChunks: {
chunks: 'all',
maxSize: 1000000,
},
},
new HtmlWebpackPlugin({
chunks: ['index'],
template: resolve(__dirname, './index.html'),
filename: '../index.html',
alwaysWriteToDisk: true,
}),
new HtmlWebpackPlugin({
chunks: ['problems'],
template: resolve(__dirname, './problems.html'),
filename: '../problems.html',
alwaysWriteToDisk: true,
}),
new HtmlWebpackPlugin({
chunks: ['news'],
template: resolve(__dirname, './news.html'),
filename: '../news.html',
alwaysWriteToDisk: true,
}),
вот такой конфиг, он создает длинные именованные чанки, не добавляя все необходимые