mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00:00
In dev mode expose only relevant sources (#11026)
This commit is contained in:
parent
1f1115f631
commit
20f1e1609f
@ -299,8 +299,13 @@ def async_setup(hass, config):
|
|||||||
hass.data[DATA_JS_VERSION] = js_version = conf.get(CONF_JS_VERSION)
|
hass.data[DATA_JS_VERSION] = js_version = conf.get(CONF_JS_VERSION)
|
||||||
|
|
||||||
if is_dev:
|
if is_dev:
|
||||||
|
for subpath in ["src", "build-translations", "build-temp", "build",
|
||||||
|
"hass_frontend", "bower_components", "panels"]:
|
||||||
hass.http.register_static_path(
|
hass.http.register_static_path(
|
||||||
"/home-assistant-polymer", repo_path, False)
|
"/home-assistant-polymer/{}".format(subpath),
|
||||||
|
os.path.join(repo_path, subpath),
|
||||||
|
False)
|
||||||
|
|
||||||
hass.http.register_static_path(
|
hass.http.register_static_path(
|
||||||
"/static/translations",
|
"/static/translations",
|
||||||
os.path.join(repo_path, "build-translations/output"), False)
|
os.path.join(repo_path, "build-translations/output"), False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user