1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 12:49:19 +00:00

Add Object.assign polyfill support (#210)

* Add Object.assign polyfill support

* Remove redundant polyfill check

* Use ES6 in compatibility.js
This commit is contained in:
Adam Mills
2017-02-14 15:01:32 -05:00
committed by Paulus Schoutsen
parent e570c961e8
commit 5207629e87
6 changed files with 29 additions and 3 deletions

View File

@@ -21,13 +21,18 @@ var rootDir = '..';
var panelDir = rootDir + '/panels';
var dynamicUrlToDependencies = {
'/': [rootDir + '/frontend.html', rootDir + '/core.js'],
'/': [
rootDir + '/frontend.html',
rootDir + '/core.js',
rootDir + '/compatibility.js',
],
};
var staticFingerprinted = [
'frontend.html',
'mdi.html',
'core.js',
'compatibility.js',
];
// These panels will always be registered inside HA and thus can

View File

@@ -6,3 +6,7 @@ var optimizeJs = require('optimize-js');
var core = fs.readFileSync('build/core.js', 'utf-8');
core = optimizeJs(core);
fs.writeFileSync('build/core.js', core);
var compatibility = fs.readFileSync('build/compatibility.js', 'utf-8');
compatibility = optimizeJs(compatibility);
fs.writeFileSync('build/compatibility.js', compatibility);