-
Notifications
You must be signed in to change notification settings - Fork 2
Add Workbox to generate a Service Worker #27
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Since every project we built with book of node includes a simple Service Worker, I want to add a standard Workbox config.
This is a working example:
module.exports = {
"globDirectory": "public/",
"globPatterns": [
"**/*.{js,woff,woff2,png,svg,jpg,xml,ico,html,webmanifest,css}"
],
"swDest": "app/views/sw.js"
}
In package.json --> NPM scripts:
"build:sw": "workbox generateSW config/workbox-config.js",
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request