diff --git a/package-lock.json b/package-lock.json index 08acea3..97a2e3e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11886,9 +11886,9 @@ } }, "gatsby-plugin-svgr-svgo": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gatsby-plugin-svgr-svgo/-/gatsby-plugin-svgr-svgo-1.2.0.tgz", - "integrity": "sha512-Rhn+EtShz3xCMB6yUd7p+/GdRSlLp1ka7DwD96pQDjmAV2RP0MIpiBdL+OUc+cjobOe/tS/EVC8t+wGGCarnZQ==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/gatsby-plugin-svgr-svgo/-/gatsby-plugin-svgr-svgo-1.2.2.tgz", + "integrity": "sha512-EceHhXiouU0KiaJWrpI6Bp4/Lwquaq4d6Yb5GZMQEtwTW6/WOSrBrtg8vlDzdncT0TBwwyDKK+JBjRZpAn8tCQ==", "dev": true, "requires": { "svgo": "^1.3.2", diff --git a/package.json b/package.json index 51c7316..c86060f 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "gatsby-plugin-react-helmet": "^4.2.0", "gatsby-plugin-sass": "^4.3.0-next.0", "gatsby-plugin-sharp": "^3.2.0", - "gatsby-plugin-svgr-svgo": "^1.2.0", + "gatsby-plugin-svgr-svgo": "^1.2.2", "gatsby-source-filesystem": "^3.2.0", "gatsby-transformer-sharp": "^3.2.0", "husky": "^6.0.0", diff --git a/src/images/example.inline.svg b/src/images/example.inline.svg index 973e730..389305b 100644 --- a/src/images/example.inline.svg +++ b/src/images/example.inline.svg @@ -1,4 +1,4 @@ - + diff --git a/src/pages/index.jsx b/src/pages/index.jsx index fbcd509..59f56fe 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -1,6 +1,8 @@ import React from 'react'; import Link from 'components/shared/link'; +import ExampleInlineSVG from 'images/example.inline.svg'; +import exampleUrlSvg from 'images/example.svg'; import MainLayout from 'layouts/main'; const IndexPage = () => ( @@ -11,7 +13,8 @@ const IndexPage = () => (
2
3
- + Inline SVG: + URL SVG: Page 2 diff --git a/src/pages/page-2.jsx b/src/pages/page-2.jsx index 095610e..94e5a5e 100644 --- a/src/pages/page-2.jsx +++ b/src/pages/page-2.jsx @@ -1,15 +1,11 @@ import React from 'react'; import Link from 'components/shared/link'; -import ExampleInlineSVG from 'images/example.inline.svg'; -import exampleUrlSvg from 'images/example.svg'; import MainLayout from 'layouts/main'; const IndexPage = () => (
- Inline SVG: - URL SVG: Back