1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

Add wabac.js as submodule and include sw in static dir

This commit is contained in:
Tessa Walsh 2025-03-06 15:21:40 -05:00
parent 7b0f8b5860
commit db56fb2df0
4 changed files with 134 additions and 0 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "wombat"] [submodule "wombat"]
path = wombat path = wombat
url = https://github.com/webrecorder/wombat url = https://github.com/webrecorder/wombat
[submodule "wabac.js"]
path = wabac.js
url = https://github.com/webrecorder/wabac.js

8
build-wabac.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
CURR_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd $CURR_DIR/wabac.js
yarn install
yarn run build
cp ./dist/sw.js ../pywb/static/wabacWorker.js

122
pywb/static/wabacWorker.js Normal file

File diff suppressed because one or more lines are too long

1
wabac.js Submodule

@ -0,0 +1 @@
Subproject commit 5b3156c0e14ac3e43fd8a94008000ff2d7e332ad