By using the Grunt task profile:dev or profile:prod, we can load different variable settings from YAML files and insert them into index.html and/or app.js. This lets us tune the specific build for local testing or the production server (where we want to use the CDN), and using YAML files makes it reproducible. Pretty pleased with how this turned out.
Primary motivation was pulling in webclient static asset files over the CDN, rather than getting them from relative URLs. (Since the origin will be wwt.o, not cdn.wwt.o.)
By using the Grunt task
profile:dev
orprofile:prod
, we can load different variable settings from YAML files and insert them into index.html and/or app.js. This lets us tune the specific build for local testing or the production server (where we want to use the CDN), and using YAML files makes it reproducible. Pretty pleased with how this turned out.Primary motivation was pulling in webclient static asset files over the CDN, rather than getting them from relative URLs. (Since the origin will be wwt.o, not cdn.wwt.o.)