Skip to content

Commit

Permalink
Include dummy sw files to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Sep 3, 2024
1 parent b248e46 commit 55701d8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/TestBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ jobs:
run: script/bootstrap
- name: Build
run: script/build
env:
IS_TEST: "true"
5 changes: 5 additions & 0 deletions public/sw-legacy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

self.addEventListener("fetch", (event) => {
event.respondWith(fetch(event.request));
});
3 changes: 3 additions & 0 deletions public/sw-modern.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
self.addEventListener("fetch", (event) => {
event.respondWith(fetch(event.request));
});
2 changes: 1 addition & 1 deletion script/build
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ if [ ! -d "./node_modules" ]; then
yarn install
fi

./node_modules/.bin/gulp build-hacs
NODE_OPTIONS=--max_old_space_size=6144 ./node_modules/.bin/gulp build-hacs

0 comments on commit 55701d8

Please sign in to comment.