How to build cesium after edits to source javascript file

1. A concise explanation of the problem you're experiencing.

Advice on how to re-create a local version of the cesium.js file after making minor edits to one of the modules (layerimagefeatureinfo.js).

3. Context. Why do you need to do this? We might know a better way to accomplish
your goal.

I am using the excellent tutorial as a base for creating a basic android app.

Following the tutorial, I copied directory Cesium from the build subdirectory (downloaded from into www/ directory. That all worked fine. But I have had to make minor changes to layerimagefeatureinfo.js so I need to re-create the Cesium directory so that my changes are included in cesium.js.

This is probably a straighforward thing to do but as a beginner I am not sure what to do next!

4. The Cesium version you're using, your operating system and browser.
Cesium 1.42, Windows 10, Firefox and Chrome.

Hi there,

You would make the change in the “Source” directory, then run the command npm run combine to build the source code. Here’s the Cesium Build Guide for a description of all the build commands.



thanks - i've done that and everything working great!