Skip to content

Commit

Permalink
Replace Google Fonts downloader with stylesheet link, enable brotli
Browse files Browse the repository at this point in the history
  • Loading branch information
roelofr committed Nov 23, 2023
1 parent 37605d9 commit 3884edc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 33 deletions.
16 changes: 8 additions & 8 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@nuxtjs/google-fonts'
],
css: ['~/assets/css/main.css'],
app: {
head: {
link: [{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Poppins:500,700&display=swap' }]
}
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
googleFonts: {
display: 'swap',
useStylesheet: true,
families: {
Poppins: [500, 700],
nitro: {
compressPublicAssets: {
brotli: true
}
}
})
24 changes: 0 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"@gumbo-millennium/eslint-config": "https://github.com/gumbo-millennium/eslint-config/releases/download/v1.0.1/gumbo-millennium-eslint-config.tgz",
"@nuxt/devtools": "^1.0.3",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@nuxtjs/google-fonts": "^3.0.2",
"nuxt": "^3.8.2",
"parcel": "^2.10.3",
"postcss": "^8.4.31",
Expand Down

0 comments on commit 3884edc

Please sign in to comment.