The dev.to project with GatsbyJS-5

Welcome to part-5 of the series. You can create part-4 here.

In this part we will start with the adding gatsby-plugin-mdx in our project. It will help to show mdx blogs in our project. MDX files are updated form of markdown files, where you can use react JSX also.

So, as per the documentation we will install the plugin by below command. So, stop you gatsby develop and run below command.

npm install --save gatsby-plugin-mdx @mdx-js/mdx @mdx-js/react

After that let’s add the basic configuration in gatsby-config.js file and then don’t forget to start gatsby by running gatsby develop

Rest of the chapter is exclusive content and will be in my upcoming book Gatsby Cookbook. You can find more details about it here.

Also, need to add them in the gatsby-config.js file.

Let’s finally install the gatsby-image plugin.

npm install --save gatsby-image

After this restart the development server by gatsby develop.

This completes part-5 of the series. You can find part-6 here.

You can find the code for the same in this github repo.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nabendu Biswas

Nabendu Biswas

589 Followers

Founder TWD, JavaScript & ReactJS Trainer, Youtuber, Blogger