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: 18 days 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-01T11:29:32.000Z (6 months ago)
- Last Synced: 2025-03-27T13:01:53.560Z (about 1 month ago)
- Topics: hugo, hugo-mod, hugo-mod-workbox, hugo-module, workbox
- Homepage:
- Size: 3.91 KB
- Stars: 3
- 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
[](https://github.com/hugomods/workbox/network/dependents)

[](https://github.com/hugomods/workbox/blob/main/LICENSE)
[](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'
...
```