From 646f0bb718c54ef4e6f256c4cc0b735ed6f75acb Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 15 May 2018 14:06:08 -0400 Subject: [PATCH] Stub service worker --- script/build_frontend | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/build_frontend b/script/build_frontend index 5c65ab999c..db785789b5 100755 --- a/script/build_frontend +++ b/script/build_frontend @@ -46,6 +46,12 @@ cp -r node_modules/leaflet/dist/images $OUTPUT_DIR/images/leaflet/ ./node_modules/.bin/gulp compress +# Stub the service worker +touch build/service_worker.js +touch build-es5/service_worker.js +touch hass_frontend/service_worker.js +touch hass_frontend_es5/service_worker.js + # Generate the __init__ file echo "VERSION = '`git rev-parse HEAD`'" >> $OUTPUT_DIR/__init__.py echo "CREATED_AT = `date +%s`" >> $OUTPUT_DIR/__init__.py