cesium-webpack-example icon indicating copy to clipboard operation
cesium-webpack-example copied to clipboard

Updates for using webpack 5. Please review

Open petrushy opened this issue 4 years ago • 3 comments

A PR for building using webpack 5. It is working but please review, I am by no means an expert in this area.

Especially regarding the import of .css in the src/index.js I think is likely not the right way to do it, but cannot find another way without a protest regarding the exports in cesium:

import "../dist/Widgets/widgets.css"

petrushy avatar Feb 09 '21 20:02 petrushy

Any progress made on this? We are trying to update our project to use Webpack 5 and the Cesium library is the only library blocking completing that task. Thanks!

goldenram avatar Mar 01 '21 15:03 goldenram

Hi, It works it seems and I also realized there is another PR with webpack 5 https://github.com/CesiumGS/cesium-webpack-example/pull/23

But would be good if someone with more insight reviewed this / that.

petrushy avatar Mar 01 '21 19:03 petrushy

Hey I think there are now three PR's with similar stuff. Maybe someone can link/merge #28. #23, #25 together?

boeckMt avatar Oct 13 '21 09:10 boeckMt

I am getting a ReferenceError: __dirname is not defined in the index.cjs file at the point below: module.exports = webpack_require("../../node_modules/cesium sync recursive")(path.join( __dirname, "Build/CesiumUnminified/index.cjs" ));

maylortaylor avatar Aug 07 '23 19:08 maylortaylor

replaced by https://github.com/CesiumGS/cesium-webpack-example/pull/52

jjspace avatar Jan 03 '24 21:01 jjspace