include sourcemaps for pages/* in dev builds
This commit is contained in:
parent
4d1cedc8b2
commit
10b7ab2c6d
@ -14,6 +14,9 @@ _pages = [
|
|||||||
name + ".html",
|
name + ".html",
|
||||||
name + ".js",
|
name + ".js",
|
||||||
],
|
],
|
||||||
|
dev_srcs = [
|
||||||
|
name + ".js.map",
|
||||||
|
],
|
||||||
package = "//ts/" + name,
|
package = "//ts/" + name,
|
||||||
) for name in _pages]
|
) for name in _pages]
|
||||||
|
|
||||||
|
@ -54,9 +54,9 @@ def copy_select_files(ctx, files, include, exclude, base, unwanted_prefix):
|
|||||||
|
|
||||||
return copy_files(ctx, wanted)
|
return copy_files(ctx, wanted)
|
||||||
|
|
||||||
def copy_files_into_group(name, package, srcs):
|
def copy_files_into_group(name, package, srcs, dev_srcs = []):
|
||||||
outs = []
|
outs = []
|
||||||
for src in srcs:
|
for src in srcs + dev_srcs:
|
||||||
copy_file(
|
copy_file(
|
||||||
name = src + "_copy",
|
name = src + "_copy",
|
||||||
src = package + ":" + src,
|
src = package + ":" + src,
|
||||||
@ -65,6 +65,9 @@ def copy_files_into_group(name, package, srcs):
|
|||||||
|
|
||||||
native.filegroup(
|
native.filegroup(
|
||||||
name = name,
|
name = name,
|
||||||
srcs = srcs,
|
srcs = srcs + select({
|
||||||
|
"//:release": [],
|
||||||
|
"//conditions:default": dev_srcs,
|
||||||
|
}),
|
||||||
visibility = ["//qt:__subpackages__"],
|
visibility = ["//qt:__subpackages__"],
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user