Skip to content

Instantly share code, notes, and snippets.

@hanford
Created December 21, 2018 19:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanford/5375852981aa3db89abfdc7af46cacfe to your computer and use it in GitHub Desktop.
Save hanford/5375852981aa3db89abfdc7af46cacfe to your computer and use it in GitHub Desktop.
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants');
const { withPlugins } = require('next-compose-plugins');
const withManifest = require('next-manifest')
const withOffline = require('next-offline')
const forceProd = require('./forceProd')
const manifest = {
"short_name": "next-offline-test-app",
"name": "next-offline-test-app",
"description": "Reproduce a bug to help fix it",
"dir": "ltr",
"lang": "en",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": "/",
"display": "standalone",
"theme_color": "#ffffff",
"background_color": "#ffffff"
}
module.exports = withPlugins([
[withManifest({ manifest })],
[withOffline({ dontAutoRegisterSw: true })]
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment