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:
- Transpiling the client-side application
- 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 ...