fix: optimization + local urls

This commit is contained in:
Cory Dransfeldt 2023-07-04 17:39:32 -07:00
parent 054962b1d1
commit b9a45b87cb
No known key found for this signature in database
3 changed files with 3 additions and 17 deletions

View file

@ -6,20 +6,6 @@ package = "@netlify/plugin-lighthouse"
[plugins.inputs] [plugins.inputs]
output_path = "reports/lighthouse/index.html" output_path = "reports/lighthouse/index.html"
###
# OPTIMIZATION
###
[build.processing]
skip_processing = false
[build.processing.css]
bundle = true
minify = false
[build.processing.js]
bundle = true
minify = false
[build.processing.images]
compress = true
### ###
# URLs # URLs
### ###

View file

@ -56,7 +56,7 @@
<script type="application/ld+json"> <script type="application/ld+json">
{% jsonLd meta, type, tags %} {% jsonLd meta, type, tags %}
</script> </script>
<script defer data-domain="coryd.dev" src="https://coryd.dev/js/script.js"></script> <script defer data-domain="coryd.dev" src="/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script> <script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
<noscript> <noscript>
<style>.client-side {display:none}</style> <style>.client-side {display:none}</style>

View file

@ -17,7 +17,7 @@ meta:
image: image:
src: https://coryd.dev/assets/img/avatar.webp src: https://coryd.dev/assets/img/avatar.webp
--- ---
<link href="https://coryd.dev/_pagefind/pagefind-ui.css" rel="stylesheet"> <link href="/_pagefind/pagefind-ui.css" rel="stylesheet">
<style> <style>
:root { :root {
--pagefind-ui-font: InterVariable, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --pagefind-ui-font: InterVariable, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
@ -35,7 +35,7 @@ meta:
} }
</style> </style>
<div id="search" class="search"></div> <div id="search" class="search"></div>
<script src="https://coryd.dev/_pagefind/pagefind-ui.js" onload="new PagefindUI({ element: '#search', showImages: false });"></script> <script src="/_pagefind/pagefind-ui.js" onload="new PagefindUI({ element: '#search', showImages: false });"></script>
<script> <script>
if (plausible) { if (plausible) {
document.querySelector('#search').addEventListener('focusout', (e) => { document.querySelector('#search').addEventListener('focusout', (e) => {