1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 04:39:01 +00:00
This commit is contained in:
Paulus Schoutsen
2018-08-21 08:59:54 +02:00
committed by GitHub
parent 13ece650bc
commit 09f238162e
14 changed files with 28 additions and 498 deletions

View File

@@ -96,12 +96,11 @@ function createConfig(isProdBuild, latestBuild) {
__DEV__: JSON.stringify(!isProdBuild),
__BUILD__: JSON.stringify(latestBuild ? 'latest' : 'es5'),
__VERSION__: JSON.stringify(VERSION),
__PUBLIC_PATH__: JSON.stringify(publicPath),
__STATIC_PATH__: '/static/',
'process.env.NODE_ENV': JSON.stringify(isProdBuild ? 'production' : 'development'),
}),
new CopyWebpackPlugin([
// Leave here until Hass.io no longer references the ES5 build.
'node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js',
latestBuild && 'node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js',
latestBuild && { from: 'public', to: '.' },
latestBuild && { from: 'build-translations/output', to: `translations` },
latestBuild && { from: 'node_modules/@polymer/font-roboto-local/fonts', to: 'fonts' },