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:
committed by
Paulus Schoutsen
parent
e570c961e8
commit
5207629e87
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user