mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-04 16:39:44 +00:00
Use webpack plugin to generate HTML (#1521)
* Use webpack plugin to generate HTML * Generate index.html * Remove unused packages
This commit is contained in:
@@ -25,9 +25,3 @@ echo "VERSION = '`git rev-parse HEAD`'" >> $OUTPUT_DIR/__init__.py
|
||||
echo "CREATED_AT = `date +%s`" >> $OUTPUT_DIR/__init__.py
|
||||
echo "VERSION = '`git rev-parse HEAD`'" >> $OUTPUT_DIR_ES5/__init__.py
|
||||
echo "CREATED_AT = `date +%s`" >> $OUTPUT_DIR_ES5/__init__.py
|
||||
|
||||
# Generate index.htmls with the MD5 hash of the builds
|
||||
./node_modules/.bin/gulp \
|
||||
gen-index-html gen-index-html-es5 \
|
||||
gen-authorize-html gen-authorize-html-es5 \
|
||||
gen-onboarding-html gen-onboarding-html-es5
|
||||
|
||||
@@ -14,7 +14,4 @@ mkdir $OUTPUT_DIR $OUTPUT_DIR_ES5
|
||||
cp -r public/__init__.py $OUTPUT_DIR_ES5/
|
||||
|
||||
./node_modules/.bin/gulp build-translations gen-icons
|
||||
cp src/authorize.html $OUTPUT_DIR
|
||||
cp src/onboarding.html $OUTPUT_DIR
|
||||
|
||||
./node_modules/.bin/webpack --watch --progress
|
||||
|
||||
Reference in New Issue
Block a user