Skip to content

hugomods/workbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hugo WorkBox Module

Used By Hugo Requirements License Version

This module mounts most of WorkBox packages on assets/workbox-* folder.

Requirements

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 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

import { setCatchHandler, setDefaultHandler } from 'workbox-routing'
import { NetworkOnly } from 'workbox-strategies'
...