Call build from bootstrap. Allow nonfingerprinted mdi. (#476)

This commit is contained in:
Andrey
2017-10-26 20:26:38 -07:00
committed by Paulus Schoutsen
parent 43a00d70d9
commit 7bd7f14913
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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
+2 -2
View File
@@ -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 */