pmochine / gridsome-plugin-pwa

PWA plugin for gridsome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 like 'src/favicon.png'
            msTileImage: '',
            msTileColor: '#666600'
        }
    }
]

License (MIT)

Open LICENSE file for more info

About

PWA plugin for gridsome

License:MIT License


Languages

Language:JavaScript 100.0%