-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
splitchunks in webpack 4 #7
Comments
+1 |
+1 also |
i was able to get things to work with this
Note I have the following also in webpack
and it created the file Cesium.bundle.js |
Just to add a bit more ontop of this if you want your other node modules separately chunked: splitChunks({
cacheGroups: {
vendors: {
name: `chunk-vendors`,
test: /[\\/]node_modules[\\/]/,
priority: -10,
chunks: 'initial'
},
commons: {
name: 'Cesium',
test: /[\\/]node_modules[\\/]cesium/,
chunks: 'all'
}
}
}) |
ol-cesium-webpack-example 下载下来,直接运行 npm i 会报错, 由于我的环境是webpack4.,所以将package文件中的配置修改为webpack4., 运行npm i 正常; |
From CesiumGS/cesium#6610
The text was updated successfully, but these errors were encountered: