Skip to content

Commit

Permalink
build: embed images in md
Browse files Browse the repository at this point in the history
  • Loading branch information
prvnbist committed Jan 12, 2020
1 parent a4a0d47 commit 3d574e4
Show file tree
Hide file tree
Showing 3 changed files with 1,906 additions and 50 deletions.
18 changes: 17 additions & 1 deletion gatsby-config.js
Expand Up @@ -15,10 +15,26 @@ module.exports = {
path: `${__dirname}/src/posts`
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`
}
},
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [`.mdx`, `.md`]
extensions: [`.mdx`, `.md`],
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 980
}
}
]
}
},
{
Expand Down
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -20,7 +20,9 @@
"gatsby-plugin-google-analytics": "^2.1.32",
"gatsby-plugin-mdx": "^1.0.67",
"gatsby-plugin-react-helmet": "^3.1.21",
"gatsby-plugin-sharp": "^2.3.13",
"gatsby-plugin-styled-components": "^3.1.17",
"gatsby-remark-images": "^3.1.42",
"gatsby-source-filesystem": "^2.1.46",
"prism-react-renderer": "^1.0.2",
"react": "^16.12.0",
Expand Down

0 comments on commit 3d574e4

Please sign in to comment.