feat: initial strategies dir
This commit is contained in:
parent
bbb1bf4445
commit
1db93f0c8f
2 changed files with 9 additions and 6 deletions
14
package.json
14
package.json
|
@ -8,13 +8,15 @@
|
||||||
"url": "https://git.sr.ht/~ayoayco/astro-sw"
|
"url": "https://git.sr.ht/~ayoayco/astro-sw"
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": "./astro-sw.js",
|
||||||
"import": "./astro-sw.js"
|
"./globals": "./globals.js",
|
||||||
},
|
"./strategies/*": "./strategies/*"
|
||||||
"./globals": {
|
|
||||||
"import": "./globals.js"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
"files": [
|
||||||
|
"astro-sw.js",
|
||||||
|
"globals.js",
|
||||||
|
"strategies/*"
|
||||||
|
],
|
||||||
"main": "./astro-sw.js",
|
"main": "./astro-sw.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
1
strategies/stale-while-revalidate.js
Normal file
1
strategies/stale-while-revalidate.js
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export default () => 'hello world!'
|
Loading…
Reference in a new issue