Skip to content

Commit

Permalink
[FIX] Building also modern JS. + Prefetching Google fonts to improve …
Browse files Browse the repository at this point in the history
…performance.
  • Loading branch information
Matteo Bilotta committed May 3, 2021
1 parent 2777e55 commit 5663245
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
export default {
// Target (https://go.nuxtjs.dev/config-target)
target: "static",
modern: "client",

// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
titleTemplate: "%s @ Byloth's Website",
meta: [],
link: [
{
rel: "preconnect",
href: "https://fonts.googleapis.com",
crossorigin: true
},

{
rel: "preload",
as: "style",
href: "https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
},
{
rel: "preload",
as: "style",
href: "https://fonts.googleapis.com/css2?family=Material+Icons"
},

{ rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" },
{ rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Material+Icons" },

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@byloth/website",
"version": "5.0.5",
"version": "5.0.6",
"description": "My personal website as a Nuxt.js application, written in TypeScript and based on Material Design.",
"keywords": [
"Vue.js",
Expand Down
2 changes: 1 addition & 1 deletion store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const state = (): ConfigState => ({
title: "Chi sono"
}
],
version: "5.0.5"
version: "5.0.6"
});

export { state };

0 comments on commit 5663245

Please sign in to comment.