-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-browser.js
31 lines (26 loc) · 987 Bytes
/
gatsby-browser.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// custom typefaces
import "typeface-montserrat";
import "typeface-merriweather";
// normalize CSS across browsers
import "./src/normalize.css";
// custom CSS styles
import "./src/style.css";
// Highlighting for code blocks
import "prismjs/themes/prism.css";
// Logs when the gatsby browser API starts
// export const onClientEntry = () => {
// console.log("We've started!");
// }
// Logs when the client route changes
// export const onRouteUpdate = ({ location, prevLocation }) => {
// console.log("new pathname", location.pathname);
// console.log("old pathname", prevLocation ? prevLocation.pathname : null);
// }
// Logs when the initial Render is called
// export const onInitialClientRender = () => {
// console.log("ReactDOM.render has executed");
// }
// Logs when the service worker is ready
export const onServiceWorkerUpdateReady = () => {
console.log("a service worker has been updated in the background and the page is ready to reload to apply changes");
}