Skip to content

v0.0.4-3

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 04 Feb 21:14
· 104 commits to main since this 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 for worker.ts
  • Contents of HTML partials imported within HTML comments using a syntax
    like: <!-- {{ ./meta_tags.html }} --> are inserted into webpages
  • dank.config.ts configures dev services with an HTTP port for proxying
    HTTP requests to backend APIs and services during development
  • defineConfig in dank.config.ts can configure HTTP ports for frontend
    dev server and esbuild context with environment variables DANK_PORT and
    ESBUILD_PORT as overrides
  • esbuild.BuildOptions loaders and plugins can be configured with
    defineConfig in dank.config.ts
  • Page routes configuring HtmlEntrypoints in dank.config.ts can use a PageMapping
    with a pattern: RegExp to simulate CDN url rewriting when running dank serve