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',
shortName: 'Gridsome',
themeColor: '#666600',
backgroundColor: '#ffffff',
icon: '' // must be supplied!
}
}
]
Open LICENSE file for more info