Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
gatsby-plugin-manifest
Advanced tools
Gatsby plugin which adds a manifest.json to make sites progressive web apps
The gatsby-plugin-manifest package is a Gatsby plugin that allows you to manage and configure the web app manifest for your Gatsby site. This manifest is a JSON file that provides metadata about your web application, which is used by browsers to provide a more integrated user experience.
Basic Configuration
This feature allows you to set up the basic configuration for your web app manifest, including the name, short name, start URL, background color, theme color, display mode, and icon.
{
"resolve": "gatsby-plugin-manifest",
"options": {
"name": "GatsbyJS",
"short_name": "GatsbyJS",
"start_url": "/",
"background_color": "#f7f0eb",
"theme_color": "#a2466c",
"display": "standalone",
"icon": "src/images/icon.png"
}
}
Adding Icons
This feature allows you to specify an icon for your web application. The icon will be used in various places, such as the home screen on mobile devices.
{
"resolve": "gatsby-plugin-manifest",
"options": {
"icon": "src/images/icon.png"
}
}
Customizing Manifest
This feature allows you to customize various aspects of the manifest, such as the cache busting mode and whether to include a favicon.
{
"resolve": "gatsby-plugin-manifest",
"options": {
"name": "My Gatsby Site",
"short_name": "Gatsby",
"start_url": "/",
"background_color": "#ffffff",
"theme_color": "#663399",
"display": "minimal-ui",
"icon": "src/images/icon.png",
"cache_busting_mode": "none",
"include_favicon": false
}
}
The webpack-pwa-manifest package is a plugin for Webpack that generates a manifest file for Progressive Web Apps. It offers similar functionalities to gatsby-plugin-manifest, such as defining the name, short name, start URL, background color, theme color, and icons for the web app. However, it is more generic and can be used with any Webpack-based project, not just Gatsby.
The favicons-webpack-plugin package is a Webpack plugin that generates favicons and a manifest file for your web application. It provides similar functionalities to gatsby-plugin-manifest, such as generating icons and configuring the manifest file. However, it focuses more on generating favicons and related assets, making it a good choice if you need more control over the favicon generation process.
The pwa-asset-generator package is a CLI tool that generates images and manifest files for Progressive Web Apps. It offers functionalities similar to gatsby-plugin-manifest, such as generating icons and configuring the manifest file. However, it is a standalone tool and can be used with any project, not just Gatsby.
FAQs
Gatsby plugin which adds a manifest.webmanifest to make sites progressive web apps
The npm package gatsby-plugin-manifest receives a total of 133,196 weekly downloads. As such, gatsby-plugin-manifest popularity was classified as popular.
We found that gatsby-plugin-manifest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.