1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-08 17:28:46 +01:00

Disable service worker in dev mode

This commit is contained in:
Paulus Schoutsen
2016-08-08 00:08:01 -07:00
parent 3512e5aa25
commit d7f79ff8fa
3 changed files with 13 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
#! /usr/bin/env node
var fs = require('fs');
var path = require('path');
var content = `
console.warn('Service worker disabled in dev mode');
`;
fs.writeFileSync(path.join('build', 'service_worker.js'), content);
Regular → Executable
+2
View File
@@ -1,3 +1,5 @@
#! /usr/bin/env node
/*
Generate a caching service worker for HA