gridsome-plugin-pwa
A PWA plugin for gridsome
Installation
# For npm
$ npm install gridsome-plugin-pwa
# For yarn
$ yarn add gridsome-plugin-pwa
Usage
Add gridsome-plugin-pwa
to plugin array with following configurable options to gridsome.config.js
Defaults are mentioned below along side properties
...
plugins:[
{
use: 'gridsome-plugin-pwa',
options: {
title: 'Gridsome',
startUrl: '/',
display: 'standalone',
statusBarStyle: 'default',
manifestPath: 'manifest.json',
serviceWorkerPath: 'service-worker.js',
cachedFileTypes: 'js,json,css,html,png,jpg,jpeg,svg',
shortName: 'Gridsome',
themeColor: '#666600',
backgroundColor: '#ffffff',
icon: '', // must be provided like 'src/favicon.png'
msTileImage: '',
msTileColor: '#666600'
}
}
]
License (MIT)
Open LICENSE file for more info