fix(bazel): rxjs_umd_modules should always be present (#28881)

This commit fixes the bug whereby `rxjs_umd_modules` would only be generated
when Sass files are used.

PR closes https://github.com/angular/angular/issues/28878

PR Close #28881
This commit is contained in:
Keen Yee Liau 2019-02-20 19:34:05 -08:00 committed by Igor Minar
parent 95d9aa22ef
commit 9ae14db343
1 changed files with 9 additions and 9 deletions

View File

@ -7,15 +7,6 @@ load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_pac
load("@build_bazel_rules_typescript//:defs.bzl", "ts_devserver", "ts_library")
<% if (sass) { %>load("@io_bazel_rules_sass//:defs.bzl", "multi_sass_binary")
filegroup(
name = "rxjs_umd_modules",
srcs = [
# do not sort
"@npm//node_modules/rxjs:bundles/rxjs.umd.js",
":rxjs_shims.js",
],
)
multi_sass_binary(
name = "styles",
srcs = glob(["**/*.scss"]),
@ -73,6 +64,15 @@ history_server(
templated_args = ["src/prodapp"],
)
filegroup(
name = "rxjs_umd_modules",
srcs = [
# do not sort
"@npm//node_modules/rxjs:bundles/rxjs.umd.js",
":rxjs_shims.js",
],
)
ts_devserver(
name = "devserver",
port = 4200,