feat(server): Add basePath config to host from a directory (#2092)

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Reed von Redwitz
2023-11-29 16:44:25 +00:00
committed by GitHub
co-authored by Marvin Hagemeister
parent fe792455ab
commit 9ab8651018
40 changed files with 810 additions and 28 deletions
+27
View File
@@ -0,0 +1,27 @@
import { Head } from "$fresh/runtime.ts";
export default function Page() {
return (
<>
<Head>
<link rel="stylesheet" href="/style.css" />
</Head>
<div>
<div id="script-output" />
<script src="/script.js"></script>
<img class="img" src="/img.png" alt="" />
<img
class="img-srcset"
src="/img.png"
srcset="/img.png 480w, /img.png 800w"
alt=""
/>
<picture>
<source srcset="/img.png" media="(min-width: 600px)" />
<img src="/img.png" alt="MDN" />
</picture>
<p class="foo">css style</p>
</div>
</>
);
}