Skip to content

camppacifictech/gridsome-plugin-pwa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gridsome logo

gridsome-plugin-pwa

A PWA plugin for gridsome

npm

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
            msTileImage: '',
            msTileColor: '#666600'
        }
    }
]

License (MIT)

Open LICENSE file for more info

About

PWA plugin for gridsome

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%