mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +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.
|
# 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
|
./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
|
# Build files that need to be generated to run development mode
|
||||||
yarn dev
|
yarn dev
|
||||||
|
@ -103,13 +103,13 @@ class HomeAssistant extends Polymer.Element {
|
|||||||
|
|
||||||
loadIcons() {
|
loadIcons() {
|
||||||
// If the import fails, we'll try to import again, must be a server glitch
|
// 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 = () => {
|
const success = () => {
|
||||||
this.iconsLoaded = true;
|
this.iconsLoaded = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
Polymer.importHref(
|
Polymer.importHref(
|
||||||
'/static/mdi-' + this.icons + '.html',
|
'/static/mdi' + this.icons + '.html',
|
||||||
success,
|
success,
|
||||||
() => Polymer.importHref('/static/mdi.html', success, success),
|
() => Polymer.importHref('/static/mdi.html', success, success),
|
||||||
true /* true for async */
|
true /* true for async */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user