Skip to content

songzhj/split-chunk-demo

Repository files navigation

Problem

When I use custom-webpack, I add splitChunks config in extra-webpack.config.js.

It's OK when I run in dev server (npm run start), but when I build it in production(npm run build:prod), chunks scripts did not inject to index.html.

Screenshots

html script in dev server: image

html script in production: image