mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-23 06:51:27 +00:00
merge master -> v3
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname $0)"/..
|
cd "$(dirname $0)"/..
|
||||||
|
|
||||||
DEFAULT=$1
|
DEFAULT=${1:-master}
|
||||||
ROLLUP=$2
|
ROLLUP=${2:-rollup}
|
||||||
WEBPACK=$3
|
WEBPACK=${3:-webpack}
|
||||||
|
|
||||||
|
echo "Creating $ROLLUP and $WEBPACK branches from $DEFAULT"
|
||||||
|
|
||||||
# make sure we're on master, and delete the $ROLLUP and $WEBPACK branches
|
# make sure we're on master, and delete the $ROLLUP and $WEBPACK branches
|
||||||
git symbolic-ref HEAD "refs/heads/$DEFAULT"
|
git symbolic-ref HEAD "refs/heads/$DEFAULT"
|
||||||
|
|||||||
@@ -48,12 +48,12 @@ self.addEventListener('fetch', event => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// for pages, you might want to serve a shell `index.html` file,
|
// for pages, you might want to serve a shell `service-worker-index.html` file,
|
||||||
// which Sapper has generated for you. It's not right for every
|
// which Sapper has generated for you. It's not right for every
|
||||||
// app, but if it's right for yours then uncomment this section
|
// app, but if it's right for yours then uncomment this section
|
||||||
/*
|
/*
|
||||||
if (url.origin === self.origin && routes.find(route => route.pattern.test(url.pathname))) {
|
if (url.origin === self.origin && routes.find(route => route.pattern.test(url.pathname))) {
|
||||||
event.respondWith(caches.match('/index.html'));
|
event.respondWith(caches.match('/service-worker-index.html'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user