From 7bd7f1491356334308b508b8fcfc5c9f81989699 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 27 Oct 2017 06:26:38 +0300 Subject: [PATCH] Call build from bootstrap. Allow nonfingerprinted mdi. (#476) --- script/bootstrap | 3 +++ src/home-assistant.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/script/bootstrap b/script/bootstrap index 632ee812e2..de98f116f8 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -12,5 +12,8 @@ yarn install # Install bower web components. Allow to download the components as root since the user in docker is root. ./node_modules/.bin/bower install --allow-root +# Generate all needed files. +script/build_frontend + # Build files that need to be generated to run development mode yarn dev diff --git a/src/home-assistant.html b/src/home-assistant.html index 00ca84221d..1ad3645920 100644 --- a/src/home-assistant.html +++ b/src/home-assistant.html @@ -103,13 +103,13 @@ class HomeAssistant extends Polymer.Element { loadIcons() { // If the import fails, we'll try to import again, must be a server glitch - // Since HTML imports only resolve once, we import another url. + // Since HTML imports only resolve once, in prod mode we import another url. const success = () => { this.iconsLoaded = true; }; Polymer.importHref( - '/static/mdi-' + this.icons + '.html', + '/static/mdi' + this.icons + '.html', success, () => Polymer.importHref('/static/mdi.html', success, success), true /* true for async */