CesiumGS / CesiumGS/cesium-webpack-example
splitchunks in webpack 4
- Dominant language
- JavaScript
- Stars
- 270
- Forks
- 164
- PR merge metrics
- No merged PRs in 30d
Description
From https://github.com/AnalyticalGraphicsInc/cesium/issues/6610
> In the cesium and webpack tutorial (https://cesiumjs.org/tutorials/cesium-and-webpack/), there is a section about code splitting which uses webpack.optimize.CommonsChunkPlugin.
However, in the new webpack 4 this has been deprecated, so you get this error:
`ERROR Error: webpack.optimize.CommonsChunkPlugin has been removed, please use config.optimization.splitChunks instead.`
> I can't seem to work out the correct syntax for using splitChunks with cesium, it would be very helpful to add this to the tutorial.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.