@@ -18,6 +18,7 @@ ng_module(
18
18
tsconfig = ":tsconfig.json" ,
19
19
deps = [
20
20
"//src/hello-world" ,
21
+ "//src/material" ,
21
22
"//src/todos" ,
22
23
"@angular//packages/core" ,
23
24
"@angular//packages/router" ,
@@ -35,19 +36,22 @@ ts_devserver(
35
36
additional_root_paths = [
36
37
"npm/node_modules/zone.js/dist" ,
37
38
"npm/node_modules/tslib" ,
39
+ "npm/node_modules/@angular/material/prebuilt-themes" ,
38
40
"npm/node_modules/@ngrx/store/bundles" ,
39
41
],
40
42
# Start from the development version of the main
41
43
entry_module = "angular_bazel_example/src/main.dev" ,
42
44
scripts = [
43
45
":require.config.js" ,
46
+ ":module-id.js" ,
44
47
],
45
48
# This is the URL we'll point our <script> tag at
46
49
serving_path = "/bundle.min.js" ,
47
50
# Serve these files in addition to the JavaScript bundle
48
51
static_files = [
49
52
"@npm//node_modules/zone.js:dist/zone.min.js" ,
50
53
"@npm//node_modules/tslib:tslib.js" ,
54
+ "@npm//node_modules/@angular/material:prebuilt-themes/deeppurple-amber.css" ,
51
55
"@npm//node_modules/@ngrx/store:bundles/store.umd.min.js" ,
52
56
"index.html" ,
53
57
],
@@ -93,13 +97,22 @@ genrule(
93
97
cmd = "cp $< $@" ,
94
98
)
95
99
100
+ # See comment for zonejs above
101
+ genrule (
102
+ name = "copy_material_theme" ,
103
+ srcs = ["@npm//node_modules/@angular/material:prebuilt-themes/deeppurple-amber.css" ],
104
+ outs = ["deeppurple-amber.css" ],
105
+ cmd = "cp $< $@" ,
106
+ )
107
+
96
108
load ("@build_bazel_rules_nodejs//:defs.bzl" , "history_server" )
97
109
98
110
history_server (
99
111
name = "prodserver" ,
100
112
data = [
101
113
"index.html" ,
102
114
":bundle" ,
115
+ ":copy_material_theme" ,
103
116
":copy_systemjs" ,
104
117
":copy_zonejs" ,
105
118
],
0 commit comments