Skip to content

Commit

Permalink
Extract ANGULAR_MATERIAL_SASS_DEPS into defaults.bzl
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen committed Dec 8, 2023
1 parent 55ba0dc commit 1351dc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build_defs/defaults.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ ANGULAR_CORE_DEPS = [
"@npm//@angular/compiler",
]

ANGULAR_MATERIAL_SASS_DEPS = [
"@npm//@angular/material",
]

ANGULAR_MATERIAL_TS_DEPS = [
"@npm//@angular/material",
]
Expand Down
4 changes: 2 additions & 2 deletions optic/web/src/app/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//build_defs:defaults.bzl", "ANGULAR_CDK_TS_DEPS", "ANGULAR_CORE_DEPS", "ANGULAR_MATERIAL_TS_DEPS", "JS_STATIC_FILES", "esbuild_config", "ng_module", "sass_external_binary")
load("//build_defs:defaults.bzl", "ANGULAR_CDK_TS_DEPS", "ANGULAR_CORE_DEPS", "ANGULAR_MATERIAL_SASS_DEPS", "ANGULAR_MATERIAL_TS_DEPS", "JS_STATIC_FILES", "esbuild_config", "ng_module", "sass_external_binary")

package(
default_visibility = ["//build_defs:optic_internal"],
Expand Down Expand Up @@ -30,7 +30,7 @@ esbuild_config(
sass_external_binary(
name = "styles",
src = "styles.scss",
external_deps = ["@npm//@angular/material"],
external_deps = ANGULAR_MATERIAL_SASS_DEPS,
sourcemap = False,
)

Expand Down

0 comments on commit 1351dc3

Please sign in to comment.