mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +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)
|
||||
|
||||
if is_dev:
|
||||
hass.http.register_static_path(
|
||||
"/home-assistant-polymer", repo_path, False)
|
||||
for subpath in ["src", "build-translations", "build-temp", "build",
|
||||
"hass_frontend", "bower_components", "panels"]:
|
||||
hass.http.register_static_path(
|
||||
"/home-assistant-polymer/{}".format(subpath),
|
||||
os.path.join(repo_path, subpath),
|
||||
False)
|
||||
|
||||
hass.http.register_static_path(
|
||||
"/static/translations",
|
||||
os.path.join(repo_path, "build-translations/output"), False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user