Compare commits

...

2 Commits

Author SHA1 Message Date
Paulus Schoutsen
a370976a10 Version bump to 20180608.0b0 2018-06-08 15:01:44 -04:00
Paulus Schoutsen
f8c2e9d476 Add es5 adapter to es5 panel 2018-06-08 14:16:43 -04:00
3 changed files with 9 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(name='home-assistant-frontend',
version='20180603.0',
version='20180608.0b0',
description='The Home Assistant frontend',
url='https://github.com/home-assistant/home-assistant-polymer',
author='The Home Assistant Authors',

View File

@@ -25,6 +25,10 @@ function setProperties(properties) {
}
function initialize(panel, properties) {
const style = document.createElement('style');
style.innerHTML = 'body{margin:0}';
document.head.appendChild(style);
const config = panel.config._panel_custom;
let start = Promise.resolve();

View File

@@ -37,7 +37,10 @@ function createConfig(isProdBuild, latestBuild) {
],
};
const copyPluginOpts = [];
const copyPluginOpts = [
// Leave here until Hass.io no longer references the ES5 build.
'node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js'
];
const plugins = [
new webpack.DefinePlugin({
@@ -69,7 +72,6 @@ function createConfig(isProdBuild, latestBuild) {
copyPluginOpts.push('node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.map')
copyPluginOpts.push({ from: 'node_modules/leaflet/dist/leaflet.css', to: `images/leaflet/` });
copyPluginOpts.push({ from: 'node_modules/leaflet/dist/images', to: `images/leaflet/` });
copyPluginOpts.push('node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js');
entry['hass-icons'] = './src/entrypoints/hass-icons.js';
entry['service-worker-hass'] = './src/entrypoints/service-worker-hass.js';
} else {