🐛 Use local Netlify logo to improve Lighthouse score

This commit is contained in:
Yann Bertrand 2022-10-14 16:11:08 +02:00
parent d48f01ac55
commit 504f178bb5
6 changed files with 34 additions and 7 deletions

View file

@ -76,7 +76,7 @@ Please update [this file](https://github.com/yannbertrand/macos-defaults/blob/ma
Thank you! I built it using [VuePress](https://vuepress.vuejs.org/). Take a look at [my report](https://github.com/yannbertrand/macos-defaults/tree/main/build#readme) if you want to use it.
<a href=\\"https://www.netlify.com\\">
<img src=\\"https://www.netlify.com/img/global/badges/netlify-light.svg\\" alt=\\"Deploys by Netlify\\" width=\\"114\\" height=\\"51\\" />
<img src=\\"netlify.svg\\" alt=\\"Deploys by Netlify\\" width=\\"114\\" height=\\"51\\" />
</a>
"
`;
@ -159,7 +159,7 @@ Please update [this file](https://github.com/yannbertrand/macos-defaults/blob/ma
Thank you! I built it using [VuePress](https://vuepress.vuejs.org/). Take a look at [my report](https://github.com/yannbertrand/macos-defaults/tree/main/build#readme) if you want to use it.
<a href=\\"https://www.netlify.com\\">
<img src=\\"https://www.netlify.com/img/global/badges/netlify-light.svg\\" alt=\\"Deploys by Netlify\\" width=\\"114\\" height=\\"51\\" />
<img src=\\"netlify.svg\\" alt=\\"Deploys by Netlify\\" width=\\"114\\" height=\\"51\\" />
</a>
"
`;
@ -243,7 +243,7 @@ Please update [this file](https://github.com/yannbertrand/macos-defaults/blob/ma
Thank you! I built it using [VuePress](https://vuepress.vuejs.org/). Take a look at [my report](https://github.com/yannbertrand/macos-defaults/tree/main/build#readme) if you want to use it.
<a href=\\"https://www.netlify.com\\">
<img src=\\"https://www.netlify.com/img/global/badges/netlify-light.svg\\" alt=\\"Deploys by Netlify\\" width=\\"114\\" height=\\"51\\" />
<img src=\\"netlify.svg\\" alt=\\"Deploys by Netlify\\" width=\\"114\\" height=\\"51\\" />
</a>
"
`;
@ -328,7 +328,7 @@ Please update [this file](https://github.com/yannbertrand/macos-defaults/blob/ma
Thank you! I built it using [VuePress](https://vuepress.vuejs.org/). Take a look at [my report](https://github.com/yannbertrand/macos-defaults/tree/main/build#readme) if you want to use it.
<a href=\\"https://www.netlify.com\\">
<img src=\\"https://www.netlify.com/img/global/badges/netlify-light.svg\\" alt=\\"Deploys by Netlify\\" width=\\"114\\" height=\\"51\\" />
<img src=\\"netlify.svg\\" alt=\\"Deploys by Netlify\\" width=\\"114\\" height=\\"51\\" />
</a>
"
`;
@ -415,7 +415,7 @@ Please update [this file](https://github.com/yannbertrand/macos-defaults/blob/ma
Thank you! I built it using [VuePress](https://vuepress.vuejs.org/). Take a look at [my report](https://github.com/yannbertrand/macos-defaults/tree/main/build#readme) if you want to use it.
<a href=\\"https://www.netlify.com\\">
<img src=\\"https://www.netlify.com/img/global/badges/netlify-light.svg\\" alt=\\"Deploys by Netlify\\" width=\\"114\\" height=\\"51\\" />
<img src=\\"netlify.svg\\" alt=\\"Deploys by Netlify\\" width=\\"114\\" height=\\"51\\" />
</a>
"
`;

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 21 KiB

View file

@ -80,5 +80,5 @@ Mettez à jour [ce fichier](https://github.com/yannbertrand/macos-defaults/blob/
Merci ! Il a été construit grâce à [VuePress](https://vuepress.vuejs.org/). Jetez un coup d'oeil à [mon avis](https://github.com/yannbertrand/macos-defaults/tree/main/build#readme) si vous souhaitez utiliser la même techno.
<a href="https://www.netlify.com">
<img src="https://www.netlify.com/img/global/badges/netlify-light.svg" alt="Déployé par Netlify" />
<img src="netlify.svg" alt="Déployé par Netlify" />
</a>

View file

@ -80,5 +80,5 @@ Please update [this file](https://github.com/yannbertrand/macos-defaults/blob/ma
Thank you! I built it using [VuePress](https://vuepress.vuejs.org/). Take a look at [my report](https://github.com/yannbertrand/macos-defaults/tree/main/build#readme) if you want to use it.
<a href="https://www.netlify.com">
<img src="https://www.netlify.com/img/global/badges/netlify-light.svg" alt="Deploys by Netlify" width="114" height="51" />
<img src="netlify.svg" alt="Deploys by Netlify" width="114" height="51" />
</a>

View file

@ -78,6 +78,10 @@ module.exports = (config, templatesPath, destinationPath) => {
`${templatesPath}/.vuepress/public/mstile-150x150.png`,
`${destinationPath}/.vuepress/public/mstile-150x150.png`
)
fs.copyFileSync(
`${templatesPath}/.vuepress/public/netlify.svg`,
`${destinationPath}/.vuepress/public/netlify.svg`
)
fs.copyFileSync(
`${templatesPath}/.vuepress/public/robots.txt`,
`${destinationPath}/.vuepress/public/robots.txt`

View file

@ -25,6 +25,7 @@ const copiedFiles = [
'.vuepress/public/media-2x1.jpg',
'.vuepress/public/media-2x1.webp',
'.vuepress/public/mstile-150x150.png',
'.vuepress/public/netlify.svg',
'.vuepress/public/robots.txt',
'.vuepress/public/safari-pinned-tab.svg',
'.vuepress/public/site.webmanifest',