Skip to content

Commit 7f607d4

Browse files
committed
feat(ng_package): allow for data targets to be provided without substitutions being applied
This change ignores text substitution for files passed to the attribute, ensuring binary assets are preserved intact in the final package.
1 parent 7133b97 commit 7f607d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ng_package/index.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def ng_package(
88
substitutions = {},
99
tags = [],
1010
replace_prefixes = {},
11+
data = [],
1112
**kwargs):
1213
angular_package_format(
1314
name = "%s_apf" % name,
@@ -24,7 +25,7 @@ def ng_package(
2425
name = name,
2526
srcs = [
2627
"%s_apf_substituted" % name,
27-
] + nested_packages,
28+
] + nested_packages + data,
2829
replace_prefixes = dict({
2930
"%s_apf_substituted/%s_apf" % (name, name): "/",
3031
"schematics/npm_package/": "schematics/",

0 commit comments

Comments
 (0)