Add development HTTP server
Add an HTTP server for development purposes that replies to requests with both the static resources and on the fly generated pages. This serves the following needs. - Modern module scripts requires an origin supporting CORS policies, which is not supported when pages are read from disk by the browser. - Provide a way for implemting automatic reloading of pages when changes are made to the source files. - Act as the starting point for making interactive features such as comments and analytics.
This commit is contained in:
parent
f708088ef7
commit
82323c9158
4 changed files with 201 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
import assert from "node:assert/strict";
|
||||
import * as assert from "node:assert/strict";
|
||||
import { suite, test } from "node:test";
|
||||
import { resolveRefs } from "./resolve-refs.js";
|
||||
import type { Element } from "antihtml";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue