v0.0.4-3
Pre-release
Pre-release
Published to npm as @eighty4/dank
npm i @eighty4/dank@next
Release notes
Added
- Scripts can import Workers with relative paths like
new Worker('./worker.ts')
and the URL will be rewritten to the website's output path forworker.ts - Contents of HTML partials imported within HTML comments using a syntax
like:<!-- {{ ./meta_tags.html }} -->are inserted into webpages dank.config.tsconfigures dev services with an HTTP port for proxying
HTTP requests to backend APIs and services during developmentdefineConfigindank.config.tscan configure HTTP ports for frontend
dev server and esbuild context with environment variablesDANK_PORTand
ESBUILD_PORTas overrides- esbuild.BuildOptions
loadersandpluginscan be configured with
defineConfigindank.config.ts - Page routes configuring HtmlEntrypoints in
dank.config.tscan use a PageMapping
with apattern: RegExpto simulate CDN url rewriting when runningdank serve