chore: update readme & package exports

This commit is contained in:
Ayo Ayco 2024-08-03 22:08:55 +02:00
parent 373145a9ed
commit d5748f30bd
2 changed files with 6 additions and 2 deletions

View file

@ -4,10 +4,9 @@
[![Package information: NPM version](https://img.shields.io/npm/v/@ayco/astro-sw)](https://www.npmjs.com/package/@ayco/astro-sw)
[![Package information: NPM license](https://img.shields.io/npm/l/@ayco/astro-sw)](https://www.npmjs.com/package/@ayco/astro-sw)
[![Package information: NPM downloads](https://img.shields.io/npm/dt/@ayco/astro-sw)](https://www.npmjs.com/package/@ayco/astro-sw)
[![Bundle Size](https://img.shields.io/bundlephobia/minzip/@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
The integration accepts service worker path and automatically injects dynamic variables such as `assets` generated by Astro for caching.
## Installation

View file

@ -7,6 +7,11 @@
"type": "git",
"url": "https://github.com/ayoayco/astro-sw"
},
"exports": {
".": {
"import": "./dist/index.js"
}
},
"main": "index.js",
"type": "module",
"engines": {