mirror of
https://github.com/a2nt/silverstripe-progressivewebapp.git
synced 2024-10-22 11:05:45 +02:00
_config | ||
resources/js | ||
src | ||
.editorconfig | ||
.gitignore | ||
composer.json | ||
LICENSE | ||
README.md | ||
service-worker.js |
SilverStripe Progressive Web App
Tools to add progressive web app functionality to your silverstripe website
Installation
composer require pixelspin/silverstripe-progressivewebapp
Usage
Install the module, run dev/build and fill in the settings in the siteconfig Create a symlink at the root of you website to vendor/pixelspin/silverstripe-progressivewebapp/service-worker.js Place the link to the manifest file () in the head of your pages and add the color meta data as well () Include the js (Requirements::javascript('pixelspin/silverstripe-progressivewebapp:resources/js/progressivewebapp.js');)
Todo
- Add "add to homescreen" prompt
- Add offline support
- Create an you are offline page
- Improve documentation