![]() In cases where order is important, the plugin README will have more details. Note: Generally, the order of plugins in your plugins array isn’t important. To add a plugin to your site, add its name to the plugins array in your gatsby-config.js file: Your gatsby-config.js file contains information about your site, including configuration for plugins. (For example, gatsby-plugin-mdx also requires to be installed.) Step 2: Configure the plugin in your gatsby-config.js file ![]() Step 1: Install the pluginĪdd the plugin as a project dependency in your package.json file by running the following command in the terminal:Ĭheck the plugin’s README file to see if there are any other dependencies that you also need to install. Using a different plugin? Check the plugin’s README in the Gatsby Plugin Library for more details on how to set it up. In this guide, you’ll add the gatsby-plugin-sitemap plugin to your Gatsby site, but you can use a similar procedure with any other plugin. (When applicable) Use features from the plugin in your site.Configure the plugin in your gatsby-config.js file.The general process for adding a plugin to your site looks like this: (Need help creating one? Follow the Quick Start.) Prerequisitesīefore you begin, you should already have: In this guide, you’ll learn how to install and configure a plugin. ![]() Plugins let you quickly add new features to your Gatsby site without needing to build them from scratch. Gatsby plugins are Node.js packages that you can add to your site. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |