Skip to content

Commit b616b2d

Browse files
committed
Add gatsby-plugin-image to config file
1 parent 8c2d4e4 commit b616b2d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

gatsby-config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ module.exports = {
2525
DEV_SSR: false
2626
},
2727
plugins: [
28+
'gatsby-plugin-sharp',
29+
'gatsby-transformer-yaml',
30+
'gatsby-transformer-sharp',
31+
'gatsby-plugin-image',
2832
{
2933
resolve: 'gatsby-plugin-manifest',
3034
options: {
@@ -41,11 +45,8 @@ module.exports = {
4145
}
4246
},
4347
'gatsby-plugin-styled-components',
44-
'gatsby-plugin-sharp',
4548
'gatsby-plugin-react-helmet',
4649
'gatsby-plugin-scroll-reveal',
47-
'gatsby-transformer-yaml',
48-
'gatsby-transformer-sharp',
4950
{
5051
resolve: 'gatsby-source-filesystem',
5152
options: {

src/sections/hero.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ export default function Hero() {
8989
}
9090
}
9191
`)
92-
console.log(hero.desktop)
9392
console.log(getImage(hero.desktop))
94-
console.log(hero.mobile)
9593
console.log(getImage(hero.mobile))
9694

9795
const responsiveImages = withArtDirection(getImage(hero.desktop), [

0 commit comments

Comments
 (0)