Skip to content

Commit

Permalink
add plausible + pwa
Browse files Browse the repository at this point in the history
  • Loading branch information
kernoeb committed Sep 17, 2023
1 parent 224e76b commit 07c39ea
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 2 deletions.
24 changes: 22 additions & 2 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,24 @@ export default {
// https://go.nuxtjs.dev/vuetify
'@nuxtjs/vuetify',
// https://github.com/juliomrqz/nuxt-optimized-images
'@aceforth/nuxt-optimized-images'
'@aceforth/nuxt-optimized-images',
// https://pwa.nuxtjs.org/setup
'@nuxtjs/pwa'
],

pwa: {
meta: {
name: 'BecauseOfProg',
description: 'Blog de programmation et actualités technologiques créé par des passionnés',
lang: 'fr'
},
manifest: {
name: 'BecauseOfProg',
short_name: 'BecauseOfProg',
description: 'Blog de programmation et actualités technologiques créé par des passionnés'
}
},

optimizedImages: {
optimizeImages: true
},
Expand All @@ -71,9 +86,14 @@ export default {
// https://go.nuxtjs.dev/content
'@nuxt/content',
'@nuxtjs/i18n',
'@nuxt/http'
'@nuxt/http',
'vue-plausible'
],

plausible: {
apiHost: 'https://plausible.noewen.com'
},

// Content module configuration: https://go.nuxtjs.dev/config-content
content: {},

Expand Down
159 changes: 159 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"cookie-universal-nuxt": "^2.2.2",
"nuxt": "2.17.1",
"vue": "2.7.14",
"vue-plausible": "^1.3.2",
"vue-server-renderer": "2.7.14",
"vue-template-compiler": "2.7.14",
"vuetify": "2.7.1"
Expand All @@ -44,6 +45,7 @@
"@babel/eslint-parser": "7.22.15",
"@nuxtjs/eslint-config": "11.0.0",
"@nuxtjs/eslint-module": "3.1.0",
"@nuxtjs/pwa": "^3.3.5",
"@nuxtjs/vuetify": "1.12.3",
"core-js": "3.32.2",
"eslint": "8.49.0",
Expand Down
Binary file added static/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 07c39ea

Please sign in to comment.