GUI2 Changed loading screen display to be a component
Change-Id: Id1592b498e6827ec4cd3544dec92e46f00e8d378
diff --git a/web/gui2-fw-lib/BUILD b/web/gui2-fw-lib/BUILD
index 2843d3d..bb59e5b 100644
--- a/web/gui2-fw-lib/BUILD
+++ b/web/gui2-fw-lib/BUILD
@@ -207,6 +207,7 @@
"@nodejs//:bin/nodejs/bin/node",
"@nodejs//:bin/nodejs/bin/npm",
":onos-gui2-fw-npm-install",
+ "//web/gui:onos-gui-data-for-gui2",
":_root_level_files",
":_gui2_fw_lib_src",
],
@@ -233,6 +234,10 @@
" See bazel-genfiles/web/gui2-fw-lib/gui2-fw-ng-build-prod.log for more details' >&2;" +
" exit 1;" +
" fi;" +
+ # see https://github.com/angular/angular-cli/issues/11071 - Angular CLI does not yet copy across assets
+ " unzip -q $$ROOT/$(location //web/gui:onos-gui-data-for-gui2) web/gui/src/main/webapp/data/img/loading/* &&" +
+ " mkdir -p dist/gui2-fw-lib/assets &&" +
+ " mv web/gui/src/main/webapp/data/img/loading dist/gui2-fw-lib/assets &&" +
" cd dist/gui2-fw-lib &&" +
" npm pack &&" +
" mv gui2-fw-lib-*.tgz $$ROOT/$(location gui2-fw-lib-ver.tgz) &&" +