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.
html script in dev server: image
html script in production: image