From the course: Learning GWT

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Compilation and optimization

Compilation and optimization

From the course: Learning GWT

Start my 1-month free trial

Compilation and optimization

- [Instructor] Up until this point, we have been testing our code in Super Dev mode. When running in Super Dev mode, no actual compiled JavaScript is stored in our war folder. We do have a currency converter sub folder in the war, but as you can see, other than the bootstrap file, the compiled JavaScript is not there. The compiled JavaScript is actually stored on the code server that runs when we're running in Super Dev mode. In addition to that, Super Dev mode also creates those very useful source maps that the browser can then interpret and allows us to debug using their Dev tools, but when preparing for production, the code is optimized, compiled, and stored in the war directory, as we'll see in a moment when we compile our project. To compile our project, right click on the project. Go to GWT, Compile, and we'll note the differences of the war directory before and after compilation. If you want to give it a different name, go ahead. We'll just hit Compile to accept the defaults…

Contents