mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46:35 +00:00
Call build from bootstrap. Allow nonfingerprinted mdi. (#476)
This commit is contained in:
parent
43a00d70d9
commit
7bd7f14913
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user