Skip to content

maratismailov/svelte-pwa-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boilerplate that enables pwa functionality in basic svelte template

this boilerplate is designed for enabling PWA (with offline functionality) in basic Svelte template

how to use it:

install rollup-plugin-workbox

npm install --save rollup-plugin-workbox

add this lines to the top of rollup.config.js:

import { injectManifest } from 'rollup-plugin-workbox';

const workboxConfig = require('./public/workbox-config.js')

add this to plugins section in rollup.config.js:

injectManifest(workboxConfig)

add files from 'public' directory to your project`s 'public' directory (replace 'index.html')

main rules for caching are written in workbox-config.js file

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published