Skip to content

Commit dbb5d09

Browse files
move svgs out of static into assets
1 parent 6597911 commit dbb5d09

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

components/navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Router from "next/router";
22
import NProgress from "nprogress";
33
import { Link } from "../routes";
4-
import GitHubRibbon from "../static/github-ribbon.svg";
4+
import GitHubRibbon from "../assets/github-ribbon.svg";
55

66
Router.onRouteChangeStart = () => NProgress.start();
77
Router.onRouteChangeComplete = () => NProgress.done();

components/page-selector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Link } from "../routes";
2-
import ChevronLeft from "../static/chevron-l.svg";
3-
import ChevronRight from "../static/chevron-r.svg";
2+
import ChevronLeft from "../assets/chevron-l.svg";
3+
import ChevronRight from "../assets/chevron-r.svg";
44

55
function getRouteOptions(prev, secondPage, type) {
66
if (secondPage && type !== "top") {

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ A Hacker News Progressive Web App built using Next.js
44

55
## Features
66

7-
* Server-rendered React with Next.js
8-
* Aliases React to Preact in production for smaller bundle size
9-
* Service worker support with sw-precache
7+
* Server-rendered [React](https://facebook.github.io/react/) with [Next.js](https://github.com/zeit/next.js/)
8+
* Aliases React to [Preact](https://preactjs.com/) in production for a smaller bundle size
9+
* Service worker support with [sw-precache](https://github.com/GoogleChrome/sw-precache)
1010
* 100/100 Lighthouse score
1111
* Server side in memory LRU cache to improve time to first byte
1212
* DNS prefetching for client side API requests

0 commit comments

Comments
 (0)