1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Restore old Hass.io HTML build (#1218)

This commit is contained in:
Paulus Schoutsen
2018-05-27 17:24:40 -04:00
committed by GitHub
parent 66012da4de
commit 045b1d02be
3 changed files with 18 additions and 4 deletions

View File

@@ -12,3 +12,11 @@ rm -rf $OUTPUT_DIR_ES5
node script/gen-icons.js
NODE_ENV=production ../node_modules/.bin/webpack -p
node script/gen-index-html.js
# Temporarily re-create old HTML import
echo "<script>" > $OUTPUT_DIR_ES5/hassio-app.html
cat $OUTPUT_DIR_ES5/app.js >> $OUTPUT_DIR_ES5/hassio-app.html
cat $OUTPUT_DIR_ES5/chunk.*.js >> $OUTPUT_DIR_ES5/hassio-app.html
echo "</script>" >> $OUTPUT_DIR_ES5/hassio-app.html
rm $OUTPUT_DIR_ES5/app.js*
rm $OUTPUT_DIR_ES5/chunk.*