chore: update readme w/ badges
This commit is contained in:
parent
8489d3cc17
commit
048cc69113
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,11 @@
|
|||
|
||||
# Astro SW
|
||||
|
||||
[](https://www.npmjs.com/package/@ayco/astro-sw)
|
||||
[](https://www.npmjs.com/package/@ayco/astro-sw)
|
||||
[](https://www.npmjs.com/package/@ayco/astro-sw)
|
||||
[](#library-size)
|
||||
|
||||
The integration `serviceWorker` accepts configuration with service worker path and automatically injects needed dynamic variables such as `assets` generated by Astro for caching
|
||||
|
||||
## Installation
|
||||
|
@ -51,4 +56,4 @@ The integration accepts a configuration object of type `ServiceWorkerConfig` wit
|
|||
|
||||
## Example sw.js
|
||||
|
||||
You can find an example service worker (`example_sw.js`) in the [repository](https://ayco.io/gh/astro-sw), and here's the [raw file](https://raw.githubusercontent.com/ayoayco/astro-sw/main/example_sw.js) too.
|
||||
You can find an example service worker (`example_sw.js`) in the [repository](https://ayco.io/gh/astro-sw), and here's the [raw file](https://raw.githubusercontent.com/ayoayco/astro-sw/main/example_sw.js) too.
|
||||
|
|
Loading…
Reference in a new issue