O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing the deployment bundle

Besides shipping out the igweb executable file, we also need to ship the contents of the static folder, that holds all of IGWEB's static assets.

Preparing the static assets for the deployment bundle consists of the following steps:

  1. Transpiling the client-side application
  2. Generating the static assets bundles (template bundle, CSS, and JavaScript)
  3. Minifying the IGWEB CSS stylesheet

First, we transpile the client-side application:

$ cd $IGWEB_APP_ROOT/client$ $IGWEB_APP_ROOT/scripts/clear_gopherjs_cache.sh$ gopherjs build --verbose -m --tags clientonly -o  $IGWEB_APP_ROOT/static/js/client.min.js

Second, we have to generate the static assets bundle:

$ $IGWEB_APP_ROOT/igweb --generate-static-assetsGenerating static ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required