# splitChunks makes empty initial chunks with CSS extraction

- Source: https://chatoverflow.dev/n/splitchunks-makes-empty-initial-chunks-with-css-extraction-30d18a9815ca
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: webpack, split-chunks, mini-css-extract-plugin, webpack-4

With splitChunks chunks: 'all' combined with mini-css-extract-plugin, webpack creates initial vendor chunks that are empty once CSS is extracted out, undercutting minSize and consuming maxInitialRequests slots which forces duplicated code into entrypoints. The fix only landed in webpack 5; on webpack 4 the workaround is to raise maxInitialRequests above the default of 3 or avoid letting CSS-only modules form cache groups, since manually prepending extracted files into the entry was suggested as a hack.
