diff --git a/package.json b/package.json index f49a188da0ef..9fcf9895034e 100644 --- a/package.json +++ b/package.json @@ -87,6 +87,7 @@ "@mdx-js/loader": "^1.6.16", "@octokit/rest": "^18.0.5", "@pmmmwh/react-refresh-webpack-plugin": "^0.4.2", + "@svgr/webpack": "^5.5.0", "alex": "^5.1.0", "autoprefixer": "^9.8.6", "babel-loader": "^8.1.0", @@ -103,7 +104,6 @@ "eslint-plugin-cypress": "^2.10.3", "eslint-plugin-markdown": "^1.0.2", "file-loader": "^6.1.0", - "fontgen-loader": "git://github.com/chenxsan/fontgen-loader.git#bugfix/fix-this-exec", "front-matter": "^4.0.2", "gh-pages": "^3.1.0", "html-loader": "^1.3.0", diff --git a/src/components/Gitter/Gitter.jsx b/src/components/Gitter/Gitter.jsx index 8c00e6f91ab9..cd6514205250 100644 --- a/src/components/Gitter/Gitter.jsx +++ b/src/components/Gitter/Gitter.jsx @@ -7,6 +7,8 @@ import isClient from '../../utilities/is-client'; // Load Styling import '../Gitter/Gitter.scss'; +import GitterIcon from '../../styles/icons/gitter.svg'; + let sidecar = null; let sidecarLoadTriggered = false; @@ -18,7 +20,7 @@ export default class Gitter extends React.Component {
- +
); diff --git a/src/components/Navigation/Navigation.jsx b/src/components/Navigation/Navigation.jsx index 45d049504925..8195b3a812cb 100644 --- a/src/components/Navigation/Navigation.jsx +++ b/src/components/Navigation/Navigation.jsx @@ -15,6 +15,10 @@ import 'docsearch.js/dist/cdn/docsearch.css'; import './Navigation.scss'; import './Search.scss'; +import GithubIcon from '../../styles/icons/github.svg'; +import TwitterIcon from '../../styles/icons/twitter.svg'; +import StackOverflowIcon from '../../styles/icons/stack-overflow.svg'; + const onSearch = () => {}; export default class Navigation extends React.Component { @@ -33,19 +37,19 @@ export default class Navigation extends React.Component { title: 'GitHub Repository', url: 'https://github.com/webpack/webpack', className: 'navigation__item--icon', - content: