Last active
April 4, 2019 12:30
-
-
Save MaedahBatool/47065ac1aa84ba89c4c9370bdc0d76c9 to your computer and use it in GitHub Desktop.
gatsby-remark-embed-video Plugin Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins: [ | |
{ | |
resolve: `gatsby-transformer-remark`, | |
options: { | |
plugins: [ | |
{ | |
// Using gatsby-remark-embed-video before gatsby-remark-images & gatsby-remark-responsive-iframe plugins. | |
resolve: `gatsby-remark-embed-video`, | |
options: { | |
maxWidth: 800, | |
ratio: 1.77, | |
height: 400, | |
related: false, | |
noIframerder: true, | |
}, | |
}, | |
{ | |
resolve: `gatsby-remark-images`, | |
options: { | |
maxWidth: 590, | |
}, | |
}, | |
{ | |
resolve: `gatsby-remark-responsive-iframe`, | |
options: { | |
wrapperStyle: `margin-bottom: 1.0725rem`, | |
}, | |
}, | |
], | |
}, | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment