Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hugomods/workbox
:ice_cube: Hugo WorkBox Module
https://github.com/hugomods/workbox
hugo hugo-mod hugo-mod-workbox hugo-module workbox
Last synced: 3 months ago
JSON representation
:ice_cube: Hugo WorkBox Module
- Host: GitHub
- URL: https://github.com/hugomods/workbox
- Owner: hugomods
- License: mit
- Created: 2022-12-14T03:56:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T20:51:59.000Z (4 months ago)
- Last Synced: 2024-10-26T08:17:45.581Z (4 months ago)
- Topics: hugo, hugo-mod, hugo-mod-workbox, hugo-module, workbox
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Hugo WorkBox Module
[![Used By](https://img.shields.io/badge/dynamic/json?color=success&label=used+by&query=repositories_humanize&logo=hugo&style=flat-square&url=https://api.razonyang.com/v1/github/dependents/hugomods/workbox)](https://github.com/hugomods/workbox/network/dependents)
![Hugo Requirements](https://img.shields.io/badge/dynamic/json?color=important&label=requirements&query=requirements&logo=hugo&style=flat-square&url=https://api.razonyang.com/v1/hugo/modules/github.com/hugomods/workbox)
[![License](https://img.shields.io/github/license/hugomods/workbox?style=flat-square)](https://github.com/hugomods/workbox/blob/main/LICENSE)
[![Version](https://img.shields.io/github/v/tag/hugomods/workbox?label=version&style=flat-square)](https://github.com/hugomods/workbox/tags)This module mounts most of [WorkBox](https://github.com/GoogleChrome/workbox) packages on `assets/workbox-*` folder.
## Requirements
- [Hugo Module](https://gohugo.io/hugo-modules/use-modules/#prerequisite).
## Packages
> This module doesn't mount the `workbox-cli` and `workbox-webpack-plugin` packages.
> I didn't test all of the following packages, please [file an issue](https://github.com/hugomods/workbox/issues/new) if you found one.
| Package | Path
|---|---
| `workbox-background-sync` | `assets/workbox-background-sync`
| `workbox-broadcast-update` | `assets/workbox-broadcast-update`
| `workbox-build` | `assets/workbox-build`
| `workbox-cacheable-response` | `assets/workbox-cacheable-response`
| `workbox-core` | `assets/workbox-core`
| `workbox-expiration` | `assets/workbox-expiration`
| `workbox-google-analytics` | `assets/workbox-google-analytics`
| `workbox-navigation-preload` | `assets/workbox-navigation-preload`
| `workbox-precaching` | `assets/workbox-precaching`
| `workbox-range-requests` | `assets/workbox-range-requests`
| `workbox-recipes` | `assets/workbox-recipes`
| `workbox-routing` | `assets/workbox-routing`
| `workbox-strategies` | `assets/workbox-strategies`
| `workbox-streams` | `assets/workbox-streams`
| `workbox-sw` | `assets/workbox-sw`
| `workbox-window` | `assets/workbox-window`## Usage
```javascript
import { setCatchHandler, setDefaultHandler } from 'workbox-routing'
import { NetworkOnly } from 'workbox-strategies'
...
```