Skip to content

Commit

Permalink
feat: add option to disable gatsby-plugin-offline
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinmuenster committed Apr 3, 2023
1 parent d4cc92a commit 5a02c42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions example-site/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
usePathPrefixForArticles: false, // Default true (i.e. path will be /blog/first-article),
},
// skipContentDirectorySetup: true, // Default false
// disableGatsbyPluginOffline: true, // Default false
// plausibleAnalytics: {
// domain: 'example.com',
// },
Expand Down
1 change: 1 addition & 0 deletions gatsby-theme-portfolio-minimal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ module.exports = {
},
contentDirectory: '', // Specifies the root content directory path
skipContentDirectorySetup: true, // Default false
disableGatsbyPluginOffline: true, // Default false
blogSettings: {
// If set, the blog integration is enabled
entityName: '', // Defines naming of posts throughout site (e.g. title of blog post listing)
Expand Down
2 changes: 1 addition & 1 deletion gatsby-theme-portfolio-minimal/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ module.exports = (options) => ({
},
}
: null,
`gatsby-plugin-offline`,
options.disableGatsbyPluginOffline ? null : `gatsby-plugin-offline`,
].filter((plugin) => plugin !== null),
});

0 comments on commit 5a02c42

Please sign in to comment.