fix: incorrect snapshot path with non-standard src directory (#1768)

This commit is contained in:
jia wei
2023-09-13 13:36:05 +02:00
committed by GitHub
parent e01ef2d8a0
commit 42dc54500c
9 changed files with 115 additions and 8 deletions
@@ -0,0 +1,15 @@
import { useSignal } from "@preact/signals";
import Counter from "../islands/Counter.tsx";
import { asset, Head } from "$fresh/runtime.ts";
export default function Home() {
const signal = useSignal(0);
return (
<div>
<Head>
<link rel="stylesheet" href={asset("/style.css")} />
</Head>
<Counter id="counter" count={signal} />
</div>
);
}